diff options
| -rw-r--r-- | src/main.c | 1 | ||||
| -rw-r--r-- | src/polkitmateauthenticationdialog.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -369,6 +369,7 @@ register_client_to_gnome_session (void) if (! g_variant_is_of_type (res, G_VARIANT_TYPE ("(o)"))) { g_warning ("RegisterClient returned unexpected type %s", g_variant_get_type_string (res)); + g_variant_unref (res); return FALSE; } diff --git a/src/polkitmateauthenticationdialog.c b/src/polkitmateauthenticationdialog.c index 13123f2..cb2bbe4 100644 --- a/src/polkitmateauthenticationdialog.c +++ b/src/polkitmateauthenticationdialog.c @@ -176,6 +176,7 @@ get_user_icon (char *username) { g_warning ("Accounts couldn't find user: %s", error->message); g_error_free (error); + g_object_unref (connection); return NULL; } @@ -202,6 +203,7 @@ get_user_icon (char *username) { g_warning ("Accounts couldn't find user icon: %s", error->message); g_error_free (error); + g_object_unref (connection); return NULL; } @@ -228,6 +230,7 @@ get_user_icon (char *username) g_variant_unref (icon_result_variant); g_variant_unref (get_icon_result); + g_object_unref (connection); return pixbuf; } |
