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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/libkopete
From:       Pali Rohár <pali.rohar () gmail ! com>
Date:       2013-06-01 22:12:32
Message-ID: 20130601221232.4152BAC85D () svn ! kde ! org
[Download RAW message or body]

SVN commit 1356760 by pali:

Fix memory corruption in Kopete::Account, use QPointer for protocol, identity and myself


 M  +3 -3      kopeteaccount.cpp  


--- trunk/KDE/kdenetwork/kopete/libkopete/kopeteaccount.cpp #1356759:1356760
@@ -74,7 +74,7 @@
 
 	~Private() { delete blackList; }
 
-	Protocol *protocol;
+	QPointer <Protocol> protocol;
 	QString id;
 	QString accountLabel;
 	bool excludeconnect;
@@ -82,8 +82,8 @@
 	QHash<QString, Contact*> contacts;
 	QColor color;
 	uint connectionTry;
-	Identity *identity;
-	Contact *myself;
+	QPointer <Identity> identity;
+	QPointer <Contact> myself;
 	QTimer suppressStatusTimer;
 	QTimer reconnectTimer;
 	bool reconnectOnNetworkIsOnline;
[prev in list] [next in list] [prev in thread] [next in thread] 

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