[Telepathy-commits] [telepathy-qt4/master] Fixed some leaks.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Fri Jan 9 12:46:56 PST 2009


---
 TelepathyQt4/Client/connection-manager.cpp |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/Client/connection-manager.cpp b/TelepathyQt4/Client/connection-manager.cpp
index db82994..a42a7ef 100644
--- a/TelepathyQt4/Client/connection-manager.cpp
+++ b/TelepathyQt4/Client/connection-manager.cpp
@@ -427,7 +427,10 @@ void ConnectionManager::Private::onGetAllConnectionManagerReturn(
     if (props.contains("Interfaces")) {
         interfaces = qdbus_cast<QStringList>(props["Interfaces"]);
     }
+
     continueIntrospection();
+
+    watcher->deleteLater();
 }
 
 void ConnectionManager::Private::onListProtocolsReturn(
@@ -452,7 +455,10 @@ void ConnectionManager::Private::onListProtocolsReturn(
         getParametersQueue.enqueue(protocolName);
         introspectQueue.enqueue(&Private::callGetParameters);
     }
+
     continueIntrospection();
+
+    watcher->deleteLater();
 }
 
 void ConnectionManager::Private::onGetParametersReturn(
@@ -478,7 +484,10 @@ void ConnectionManager::Private::onGetParametersReturn(
 
         info->addParameter(spec);
     }
+
     continueIntrospection();
+
+    watcher->deleteLater();
 }
 
 void ConnectionManager::Private::continueIntrospection()
-- 
1.5.6.5




More information about the Telepathy-commits mailing list