[Marble-commits] KDE/kdeedu/marble/src/lib/graphicsview

Laurent Montel montel at kde.org
Sat Sep 12 14:12:01 CEST 2009


SVN commit 1022743 by mlaurent:

Fix mem leak


 M  +5 -0      LabelGraphicsItem.cpp  
 M  +1 -0      LabelGraphicsItem.h  


--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/LabelGraphicsItem.cpp #1022742:1022743
@@ -61,6 +61,11 @@
 {
 }
 
+LabelGraphicsItem::~LabelGraphicsItem()
+{
+    delete d;
+}
+
 QString LabelGraphicsItem::text() const
 {
     return d->m_text;
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/LabelGraphicsItem.h #1022742:1022743
@@ -32,6 +32,7 @@
 {
  public:
     explicit LabelGraphicsItem( MarbleGraphicsItem *parent = 0 );
+    ~LabelGraphicsItem();
 
     QString text() const;
     void setText( const QString& text );


More information about the Marble-commits mailing list