]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/CanvasWidget.cxx
Reset: GUI can be shutdown.
[flightgear.git] / src / GUI / CanvasWidget.cxx
index d627d6f2f152f88fafb7163d31a35f124524f60e..fc21d0c93cb1acfed2abd64a6061a129e2aa9a7f 100644 (file)
@@ -95,12 +95,7 @@ CanvasWidget::CanvasWidget( int x, int y,
 CanvasWidget::~CanvasWidget()
 {
   if( _canvas )
-    // TODO check if really not in use anymore
-    _canvas->getProps()
-           ->getParent()
-           ->removeChild( _canvas->getProps()->getName(),
-                          _canvas->getProps()->getIndex(),
-                          false );
+    _canvas->destroy();
 }
 
 // Old versions of PUI are missing this defines...