From 3721df574dc72351afce012913ff8e26eedab101 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 25 Feb 2007 19:18:25 +0000 Subject: Only unref after setting the notify action --- daemon/echo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/echo.c') diff --git a/daemon/echo.c b/daemon/echo.c index 23cf4cc0..a06359e2 100644 --- a/daemon/echo.c +++ b/daemon/echo.c @@ -81,8 +81,6 @@ static void authorization_callback(DBusPendingCall *call, void *data) g_io_channel_unref(io); dbus_message_unref(reply); - - dbus_pending_call_unref(call); } static int request_authorization(DBusConnection *conn, @@ -111,6 +109,8 @@ static int request_authorization(DBusConnection *conn, dbus_pending_call_set_notify(pending, authorization_callback, io, NULL); + dbus_pending_call_unref(pending); + dbus_message_unref(msg); return 0; -- cgit