summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-02-12 20:35:08 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2010-02-17 09:59:12 (GMT)
commitfb02febb39a318a1e4d846956932ea24a88423d7 (patch)
tree6fed213a3988a3d49445af454d92811bed4aa552 /gdbus
parentc9479134d6444c9e9da98ad5bb5ba4891a86d51b (diff)
downloadconnman-fb02febb39a318a1e4d846956932ea24a88423d7.zip
connman-fb02febb39a318a1e4d846956932ea24a88423d7.tar.gz
connman-fb02febb39a318a1e4d846956932ea24a88423d7.tar.bz2
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.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/watch.c2
1 files changed, 2 insertions, 0 deletions
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);
}