GDBusConnection: Don't leak message reply in error path

This was reported in bug 670909.

https://bugzilla.gnome.org/show_bug.cgi?id=670909

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2012-02-27 14:53:13 -05:00
parent eeccd3866a
commit 7a4a973cfd

View File

@ -5298,8 +5298,8 @@ g_dbus_connection_call_done (GObject *source,
{
g_simple_async_result_set_op_res_gpointer (state->simple, state, (GDestroyNotify) call_state_free);
g_simple_async_result_complete (state->simple);
g_object_unref (reply);
}
g_clear_object (&reply);
g_object_unref (simple);
}