summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-02-25 19:18:25 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-02-25 19:18:25 +0000
commit3721df574dc72351afce012913ff8e26eedab101 (patch)
tree6b01301ace1fbea54427e69f1a761541a466c785 /daemon
parent2510ba5976f0e8add864a713c761bcc3c46b9ff9 (diff)
Only unref after setting the notify action
Diffstat (limited to 'daemon')
-rw-r--r--daemon/echo.c4
1 files changed, 2 insertions, 2 deletions
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;