From 14dea5e18d8a9d06424b74fa30f69316c965b0eb Mon Sep 17 00:00:00 2001 From: Zhenhua Zhang Date: Mon, 26 Jul 2010 09:11:36 +0800 Subject: Free service data in service_reply Avoid the memory leak of server_data. --- gdbus/watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdbus/watch.c') 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); -- cgit v1.2.3