summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-03-12 00:21:10 +0100
committerVictor Kareh <[email protected]>2026-03-12 16:35:48 -0400
commit33624cc0aaca587e1f5f80efb18801ccb9cfbcaf (patch)
tree6bc910a029fa434f8fe35bc52cf013af5e0a31fb
parent9b84351f7b61146779ef30889be37cd17fd3caed (diff)
downloadmate-polkit-33624cc0aaca587e1f5f80efb18801ccb9cfbcaf.tar.bz2
mate-polkit-33624cc0aaca587e1f5f80efb18801ccb9cfbcaf.tar.xz
fix memleaksHEADmaster
-rw-r--r--src/main.c1
-rw-r--r--src/polkitmateauthenticationdialog.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d60cd8f..f733aec 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}