]> git.mxchange.org Git - simgear.git/commitdiff
Avoid some memory leaks in derived classes due to non-virtual destructors.
authorThorstenB <brehmt@gmail.com>
Sat, 19 Mar 2011 13:50:18 +0000 (14:50 +0100)
committerThorstenB <brehmt@gmail.com>
Sat, 19 Mar 2011 13:50:18 +0000 (14:50 +0100)
simgear/scene/material/EffectElement.hxx
simgear/sound/sample_group.hxx

index 3a7fdd4db9aa0c1ccba1405daaaebb6dce7edc01..20d2da8cf45c50957c11d70689a144b6bf893fd9 100644 (file)
@@ -22,7 +22,7 @@ namespace simgear
 class EffectElement
 {
 protected:
-    ~EffectElement() {}
+    virtual ~EffectElement() {}
 };
 }
 #endif
index 59d42b323e8cacbea970ef1e0cb84790be4781d6..ccf1e85db1f4ede870f4d48ef6b553f63cd9b9c9 100644 (file)
@@ -85,7 +85,7 @@ public:
     /**
      * Destructor
      */
-    ~SGSampleGroup ();
+    virtual ~SGSampleGroup ();
 
     /**
      * Set the status of this sample group to active.