[Marble-commits] KDE/kdeedu/marble/src/lib/graphicsview
    Jens-Michael Hoffmann 
    jensmh at gmx.de
       
    Sat Dec 19 23:01:37 CET 2009
    
    
  
SVN commit 1064022 by jmhoffmann:
Fix remaining memory leak in MarbleGraphicsGridLayout.
 M  +5 -2      MarbleGraphicsGridLayout.cpp  
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/MarbleGraphicsGridLayout.cpp #1064021:1064022
@@ -44,9 +44,12 @@
         }
     }
 
-    MarbleGraphicsGridLayoutPrivate()
+    ~MarbleGraphicsGridLayoutPrivate()
     {
-        delete m_items;
+        for ( int i = 0; i < m_rows; ++i ) {
+            delete[] m_items[i];
+        }
+        delete[] m_items;
     }
 
     // A two dimensional array of pointers to ScreenGraphicsItems
    
    
More information about the Marble-commits
mailing list