diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-06-06 15:42:47 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2014-06-06 15:42:47 +0900 |
commit | 87fb61f76fc0ffbac316b0090b206faadfbd82fd (patch) | |
tree | 3f1fae08f2a378fa848354be009f42ac4f6b6889 /src | |
parent | 23c784d45cbab7ae7a12e7b3c02c4299a446e03b (diff) | |
download | ibus-87fb61f76fc0ffbac316b0090b206faadfbd82fd.tar.gz |
Fix GVariant leaks
BUG=http://code.google.com/p/ibus/issues/detail?id=1712
Review URL: https://codereview.appspot.com/109720043
Patch from Christophe Fergeau <cfergeau@redhat.com>.
Diffstat (limited to 'src')
-rw-r--r-- | src/ibusbus.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 ( |