diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-05-23 15:14:20 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-05-23 21:12:50 +0200 |
commit | 26eedcbd99f453721caf3dbdb4b76a27e6aaefab (patch) | |
tree | 3f1fae08f2a378fa848354be009f42ac4f6b6889 | |
parent | ac9edc6f6dac14124af0b1c3a4268df10061b25a (diff) |
Fix GVariant leaks
-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 ( |