Fix: a pending call was leaking in check_service
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Fri, 12 Feb 2010 20:35:08 +0000 (17:35 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Feb 2010 09:59:12 +0000 (01:59 -0800)
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

index 75e4210..1d479fa 100644 (file)
@@ -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);
 }