From fb02febb39a318a1e4d846956932ea24a88423d7 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Fri, 12 Feb 2010 17:35:08 -0300 Subject: [PATCH] Fix: a pending call was leaking in check_service This was triggering an assert inside libdbus when the timeout inside the leaking pending call expired. The assert said that we were trying to remove an nonexistent timeout. --- gdbus/watch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdbus/watch.c b/gdbus/watch.c index 75e4210..1d479fa 100644 --- a/gdbus/watch.c +++ b/gdbus/watch.c @@ -535,6 +535,8 @@ static void check_service(DBusConnection *connection, const char *name, dbus_pending_call_set_notify(call, service_reply, data, NULL); + dbus_pending_call_unref(call); + done: dbus_message_unref(message); } -- 2.7.4