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

Michael Jansen kde at michael-jansen.biz
Sat Jul 18 15:51:45 CEST 2009


SVN commit 998751 by mjansen:

Fix memory leak.

==7385== 47,744 (3,072 direct, 44,672 indirect) bytes in 64 blocks are definitely lost in loss record 408 of 508
==7385==    at 0x4C2506C: operator new(unsigned long) (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==7385==    by 0x536DD16: Marble::GeoDataLineStringPrivate::toDateLineCorrected(Marble::GeoDataLineString const&, QVector<Marble::GeoDataLineString*>&) (GeoDataLineString.cpp:414)
==7385==    by 0x536E02E: Marble::GeoDataLineString::toDateLineCorrected() const (GeoDataLineString.cpp:313)
==7385==    by 0x536E0AC: Marble::GeoDataLineString::toRangeCorrected() const (GeoDataLineString.cpp:303)
==7385==    by 0x53E09AA: Marble::AbstractProjection::screenCoordinates(Marble::GeoDataLineString const&, Marble::ViewportParams const*, QVector<QPolygonF*>&) (AbstractProjection.cpp:143)
==7385==    by 0x53C9762: Marble::GeoPainter::drawPolyline(Marble::GeoDataLineString const&, QString const&, QFlags<Marble::LabelPositionFlag>) (GeoPainter.cpp:389)
==7385==    by 0x13368F36: Marble::GraticulePlugin::renderLatitudeLine(Marble::GeoPainter*, double, Marble::GeoDataLatLonAltBox const&, QString const&, QFlags<Marble::LabelPositionFlag>) (GraticulePlugin.cpp:226)
==7385==    by 0x1336963B: Marble::GraticulePlugin::render(Marble::GeoPainter*, Marble::ViewportParams*, QString const&, Marble::GeoSceneLayer*) (GraticulePlugin.cpp:173)
==7385==    by 0x53D1CFD: Marble::LayerManager::renderLayer(Marble::GeoPainter*, Marble::ViewParams*, QString const&) (LayerManager.cpp:136)
==7385==    by 0x53D1E5D: Marble::LayerManager::renderLayers(Marble::GeoPainter*, Marble::ViewParams*, QStringList const&) (LayerManager.cpp:119)
==7385==    by 0x539D6FD: Marble::MarbleModel::paintGlobe(Marble::GeoPainter*, int, int, Marble::ViewParams*, bool, QRect const&) (MarbleModel.cpp:613)
==7385==    by 0x53A38E9: Marble::MarbleMapPrivate::paintGround(Marble::GeoPainter&, QRect&) (MarbleMap.cpp:277)

CCMAIL:marble-devel at kde.org

 M  +5 -0      GeoDataLineString_p.h  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataLineString_p.h #998750:998751
@@ -32,6 +32,11 @@
     {
     }
 
+    ~GeoDataLineStringPrivate()
+    {
+    qDeleteAll(m_rangeCorrected);
+    }
+
     virtual GeoDataGeometryPrivate* copy()
     { 
         GeoDataLineStringPrivate* copy = new GeoDataLineStringPrivate;


More information about the Marble-devel mailing list