diff options
author | Zhenhua Zhang <zhenhua.zhang@intel.com> | 2010-07-26 09:11:36 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-26 07:30:48 -0700 |
commit | 04fffa93a1db0b79fc5f436c2d71924d97fcd3bb (patch) | |
tree | 9b0900d9bc349ecf489d7956495e288cf1823487 /gdbus | |
parent | e31d429dbe788700e9523751eabc781c53b53b79 (diff) |
Free service data in service_reply
Avoid the memory leak of server_data.
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/watch.c | 2 |
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); |