[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/data

Bastian Holst bastianholst at gmx.de
Thu May 6 21:42:31 CEST 2010


SVN commit 1123751 by bholst:

Fix memory leak in GeoDataRegionPrivate::operator=

 M  +2 -0      GeoDataRegion_p.h  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataRegion_p.h #1123750:1123751
@@ -69,6 +69,7 @@
     GeoDataRegionPrivate &operator=( const GeoDataRegionPrivate other )
     {
         m_parent = other.m_parent;
+        delete m_latLonAltBox;
         if ( other.m_latLonAltBox ) {
             m_latLonAltBox = new GeoDataLatLonAltBox( *other.m_latLonAltBox );
         }
@@ -76,6 +77,7 @@
             m_latLonAltBox = 0;
         }
 
+        delete m_lod;
         if ( other.m_lod ) {
             m_lod = new GeoDataLod( *other.m_lod );
         }


More information about the Marble-commits mailing list