telepathy-qt: DBusError: Fixed memory leak.

Alexandr Akulich kaffeine at kemper.freedesktop.org
Sat Apr 23 08:33:21 UTC 2016


Module: telepathy-qt
Branch: master
Commit: 3e1f8a3954cbd624907ca7ebcd2f23090cc88189
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=3e1f8a3954cbd624907ca7ebcd2f23090cc88189

Author: Alexandr Akulich <akulichalexander at gmail.com>
Date:   Wed Mar  2 11:49:48 2016 +0500

DBusError: Fixed memory leak.

---

 TelepathyQt/dbus-error.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/TelepathyQt/dbus-error.cpp b/TelepathyQt/dbus-error.cpp
index c476878..47bd573 100644
--- a/TelepathyQt/dbus-error.cpp
+++ b/TelepathyQt/dbus-error.cpp
@@ -71,6 +71,9 @@ DBusError::DBusError(const QString &name, const QString &message)
  */
 DBusError::~DBusError()
 {
+    if (mPriv) {
+        delete mPriv;
+    }
 }
 
 /**



More information about the telepathy-commits mailing list