Free service data in service_reply

Avoid the memory leak of server_data.
This commit is contained in:
Zhenhua Zhang 2010-07-26 09:11:36 +08:00 committed by Marcel Holtmann
parent e31d429dbe
commit 04fffa93a1
1 changed files with 1 additions and 1 deletions

View File

@ -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);