summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpm-prefs-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index ddb1bd7..38185ae 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -714,6 +714,7 @@ gpm_prefs_init (GpmPrefs *prefs)
if (error == NULL && res != NULL) {
g_variant_get(res,"(s)", &r);
prefs->priv->can_shutdown = g_strcmp0(r,"yes")==0?TRUE:FALSE;
+ g_free(r);
g_variant_unref (res);
} else if (error != NULL ) {
egg_error ("Error in dbus - %s", error->message);
@@ -730,6 +731,7 @@ gpm_prefs_init (GpmPrefs *prefs)
if (error == NULL && res != NULL) {
g_variant_get(res,"(s)", &r);
prefs->priv->can_suspend = g_strcmp0(r,"yes")==0?TRUE:FALSE;
+ g_free(r);
g_variant_unref (res);
} else if (error != NULL ) {
egg_error ("Error in dbus - %s", error->message);
@@ -746,6 +748,7 @@ gpm_prefs_init (GpmPrefs *prefs)
if (error == NULL && res != NULL) {
g_variant_get(res,"(s)", &r);
prefs->priv->can_hibernate = g_strcmp0(r,"yes")==0?TRUE:FALSE;
+ g_free(r);
g_variant_unref (res);
} else if (error != NULL ) {
egg_error ("Error in dbus - %s", error->message);
@@ -884,6 +887,7 @@ gpm_prefs_finalize (GObject *object)
g_object_unref (prefs->priv->settings);
g_object_unref (prefs->priv->client);
g_object_unref (prefs->priv->console);
+ g_object_unref (prefs->priv->builder);
G_OBJECT_CLASS (gpm_prefs_parent_class)->finalize (object);
}