[gjs] dbus: Fixed the leak of a DBus message



commit 6d8e856101e825df5b37d6acc96d028353050fd3
Author: Johan Bilien <jobi litl com>
Date:   Thu Jun 4 17:45:32 2009 +0100

    dbus: Fixed the leak of a DBus message
---
 gjsdbus/dbus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gjsdbus/dbus.c b/gjsdbus/dbus.c
index 51fd897..0651f22 100644
--- a/gjsdbus/dbus.c
+++ b/gjsdbus/dbus.c
@@ -1287,6 +1287,8 @@ request_name_owner(DBusConnection *connection,
 
     call = NULL;
     dbus_connection_send_with_reply(connection, message, &call, -1);
+    dbus_message_unref(message);
+
     if (call != NULL) {
         GetOwnerRequest *gor;
         GjsDBusWatchNameFlags flags;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]