From: Vinicius Costa Gomes Date: Fri, 12 Feb 2010 20:35:08 +0000 (-0300) Subject: Fix: a pending call was leaking in check_service X-Git-Tag: 2.0_alpha~2834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb02febb39a318a1e4d846956932ea24a88423d7;p=framework%2Fconnectivity%2Fconnman.git 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. --- 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); }