[Kst] extragear/graphics/kst/src/libkstmath

George Staikos staikos at kde.org
Mon Jan 22 08:12:22 CET 2007


SVN commit 626103 by staikos:

Fix memory leak.


 M  +3 -0      labelparser.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/labelparser.cpp #626102:626103
@@ -71,10 +71,13 @@
   delete next;
   delete up;
   delete down;
+  delete group;
+  group = 0L;
   if (prev) {
     switch (vOffset) {
       case None:
         prev->next = 0L;
+        // Note: kind of does the wrong thing if we're a group...  no issue though
         break;
       case Up:
         prev->up = 0L;


More information about the Kst mailing list