]> git.mxchange.org Git - simgear.git/commitdiff
canvas::NasalWidget: ensure nasal part is destroyed
authorThomas Geymayer <tomgey@gmail.com>
Mon, 16 Jun 2014 21:45:52 +0000 (23:45 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 16 Jun 2014 21:45:52 +0000 (23:45 +0200)
simgear/canvas/layout/NasalWidget.cxx
simgear/canvas/layout/NasalWidget.hxx

index 1c1b16cb6a0088a1794aa1ad7bb5788011660562..ef6a9f36521fce5574c1a31e16099df78374aadb 100644 (file)
@@ -33,6 +33,12 @@ namespace canvas
 
   }
 
+  //----------------------------------------------------------------------------
+  NasalWidget::~NasalWidget()
+  {
+    onRemove();
+  }
+
   //----------------------------------------------------------------------------
   void NasalWidget::invalidate()
   {
index 46a8125994a5a2748d84b3a73c54b078f9bcabbb..c763953e06ee31d613845a3f82c4b2b04edbf381 100644 (file)
@@ -49,6 +49,8 @@ namespace canvas
        */
       NasalWidget(naRef impl);
 
+      ~NasalWidget();
+
       virtual void invalidate();
       virtual void setGeometry(const SGRecti& geom);
       virtual void onRemove();