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