summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpm-prefs-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index ddb1bd7..8f1cab8 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);