[SCM] ktp-auth-handler packaging branch, master, updated. debian/15.12.1-2-282-g080758e

Maximiliano Curia maxy at moszumanska.debian.org
Fri May 27 23:59:12 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-auth-handler.git;a=commitdiff;h=ae497dc

The following commit has been merged in the master branch:
commit ae497dc7a8703a9d4a465da5c4e8cdde95a9ae8d
Author: Àlex Fiestas <afiestas at kde.org>
Date:   Fri Jun 7 14:22:51 2013 +0200

    Use a Scoped pointer to avoid leaking ACcountInterfaceStorage
---
 sasl-auth-op.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sasl-auth-op.cpp b/sasl-auth-op.cpp
index 1e0d403..5b269fb 100644
--- a/sasl-auth-op.cpp
+++ b/sasl-auth-op.cpp
@@ -24,6 +24,8 @@
 #include "x-messenger-oauth2-auth-operation.h"
 #include "x-telepathy-sso-operation.h"
 
+#include <QtCore/QScopedPointer>
+
 #include <TelepathyQt/PendingVariantMap>
 
 #include <KDebug>
@@ -113,7 +115,9 @@ void SaslAuthOp::onOpenWalletOperationFinished(Tp::PendingOperation *op)
 
     //Check if the account has any StorageIdentifier, in which case we will
     //prioritize those mechanism related with KDE Accounts integration
-    Tp::Client::AccountInterfaceStorageInterface *accountStorageInterface = new Tp::Client::AccountInterfaceStorageInterface(m_account->busName(), m_account->objectPath());
+    QScopedPointer<Tp::Client::AccountInterfaceStorageInterface> accountStorageInterface(
+        new Tp::Client::AccountInterfaceStorageInterface(m_account->busName(), m_account->objectPath()));
+
     Tp::PendingVariantMap *pendingMap = accountStorageInterface->requestAllProperties();
     connect(pendingMap, SIGNAL(finished(Tp::PendingOperation*)), SLOT(onGetAccountStorageFetched(Tp::PendingOperation*)));
 }

-- 
ktp-auth-handler packaging



More information about the pkg-kde-commits mailing list