summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-07-26 09:11:36 +0800
committerMarcel Holtmann <marcel@holtmann.org>2010-07-26 07:30:48 -0700
commit04fffa93a1db0b79fc5f436c2d71924d97fcd3bb (patch)
tree9b0900d9bc349ecf489d7956495e288cf1823487 /gdbus
parente31d429dbe788700e9523751eabc781c53b53b79 (diff)
Free service data in service_reply
Avoid the memory leak of server_data.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbus/watch.c b/gdbus/watch.c
index 1d479fac..29f23e2d 100644
--- a/gdbus/watch.c
+++ b/gdbus/watch.c
@@ -533,7 +533,7 @@ static void check_service(DBusConnection *connection, const char *name,
goto done;
}
- dbus_pending_call_set_notify(call, service_reply, data, NULL);
+ dbus_pending_call_set_notify(call, service_reply, data, g_free);
dbus_pending_call_unref(call);