summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpm-button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpm-button.c b/src/gpm-button.c
index 5bfe19d..c440c5b 100644
--- a/src/gpm-button.c
+++ b/src/gpm-button.c
@@ -284,6 +284,7 @@ gpm_button_is_lid_closed (GpmButton *button)
NULL,
&error
);
+ g_object_unref(proxy);
if (error == NULL && res != NULL) {
g_variant_get(res, "(v)", &inner );
lid = g_variant_get_boolean(inner);
@@ -294,7 +295,6 @@ gpm_button_is_lid_closed (GpmButton *button)
g_error ("Error in dbus - %s", error->message);
g_error_free (error);
}
- g_object_unref(proxy);
return FALSE;
}