Author: manolo
Date: 2012-09-29 15:38:53 -0700 (Sat, 29 Sep 2012)
New Revision: 9692
Log:
Exercise deletion of fltk3::ShapedWindow object.

Modified:
   branches/branch-3.0/test/shapedwindow.cxx

Modified: branches/branch-3.0/test/shapedwindow.cxx
===================================================================
--- branches/branch-3.0/test/shapedwindow.cxx   2012-09-29 20:25:13 UTC (rev 
9691)
+++ branches/branch-3.0/test/shapedwindow.cxx   2012-09-29 22:38:53 UTC (rev 
9692)
@@ -209,8 +209,7 @@
 }; 
 
 void cb(fltk3::Widget *w, void *) {
-  fltk3::delete_widget(w->window());
-  fltk3::wait(0);
+  w->window()->hide();
 }
 
 class mybox : public fltk3::BoxWidget {
@@ -245,5 +244,7 @@
   win1->end();
   win1->resizable(win1);
   win1->show();
-  return fltk3::run();
+  fltk3::run();
+  delete win1;
+  return 0;
 }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to