summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/dbus-1-tqt/dbus1tqt-3.5.13-memory_leak.patch
blob: cae8fea035698e53462804cd4400c6275c89d03a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- dbus-1-tqt/tqdbusconnection.cpp.ORI	2011-11-11 20:37:57.684881138 +0100
+++ dbus-1-tqt/tqdbusconnection.cpp	2011-11-11 20:40:33.910795465 +0100
@@ -285,7 +285,12 @@
 
     dbus_message_unref(msg);
 
-    return TQT_DBusMessage::fromDBusMessage(reply);
+    TQT_DBusMessage mess = TQT_DBusMessage::fromDBusMessage(reply);
+
+    /* XXX fromDbusMessage do a ref(), avoid leaking */
+    dbus_message_unref(reply);
+
+    return mess;
 }
 
 void TQT_DBusConnection::flush() const