From 26eedcbd99f453721caf3dbdb4b76a27e6aaefab Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 23 May 2014 15:14:20 +0200 Subject: Fix GVariant leaks --- src/ibusbus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ibusbus.c b/src/ibusbus.c index 92fdeabe..a843fa75 100644 --- a/src/ibusbus.c +++ b/src/ibusbus.c @@ -737,6 +737,7 @@ _create_input_context_async_step_one_done (GDBusConnection *connection, * The connection is closed, can not contine next steps, so complete * the asynchronous request with error. */ + g_variant_unref(variant); g_simple_async_result_set_error (simple, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Connection is closed."); g_simple_async_result_complete_in_idle (simple); @@ -745,6 +746,7 @@ _create_input_context_async_step_one_done (GDBusConnection *connection, const gchar *path = NULL; g_variant_get (variant, "(&o)", &path); + g_variant_unref(variant); IBusBus *bus = (IBusBus *)g_async_result_get_source_object ( -- cgit v1.2.3