summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-02-12 17:35:08 -0300
committerMarcel Holtmann <marcel@holtmann.org>2010-02-17 01:59:31 -0800
commit2e9a16ce07bae20c35f3205315d965d2e5e410ee (patch)
tree8bbf36338e07892488e2c113f78104f97223a1b5
parent1c3aaaacc6575f0cf7c3c507ea88b6f3d14461f9 (diff)
downloadofono-2e9a16ce07bae20c35f3205315d965d2e5e410ee.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.
-rw-r--r--gdbus/watch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdbus/watch.c b/gdbus/watch.c
index 75e42103..1d479fac 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);
}