diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/echo.c | 4 |
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; |