[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/plugins/marble/twitter
From:       Laurent Montel <montel () kde ! org>
Date:       2008-08-01 7:25:38
Message-ID: 1217575538.464306.30401.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 840443 by mlaurent:

Fix mem leak (for the future)


 M  +5 -0      twitterPlugin.cpp  
 M  +2 -1      twitterPlugin.h  


--- trunk/KDE/kdeedu/marble/src/plugins/marble/twitter/twitterPlugin.cpp \
#840442:840443 @@ -25,6 +25,11 @@
 // #include "GeoDataLatLonAltBox.h"
 // #include "ViewportParams.h"
 
+twitterPlugin::~twitterPlugin()
+{
+        delete m_storagePolicy;
+}
+
 QStringList twitterPlugin::backendTypes() const
 {
         return QStringList ( "twitter" );
--- trunk/KDE/kdeedu/marble/src/plugins/marble/twitter/twitterPlugin.h #840442:840443
@@ -64,7 +64,8 @@
         bool isInitialized () const;
 
         bool render ( GeoPainter *painter, ViewportParams *viewport, const QString& \
                renderPos, GeoSceneLayer * layer = 0 );
-
+       
+        ~twitterPlugin();
 public slots:
         void slotJsonDownloadComplete ( QString , QString );//completed download of \
                json reply fom panoramio
         void slotGeoCodingReplyRecieved ( QString , QString );//completed download \
of image


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic