diff options
author | Colomban Wendling <[email protected]> | 2024-10-02 12:03:01 +0200 |
---|---|---|
committer | Colomban Wendling <[email protected]> | 2024-10-02 12:03:01 +0200 |
commit | 1a3b70bbe58355684cf896449fd0405fc05fdc2b (patch) | |
tree | 6692e5873ba525139ae0b22e8032acf280e15b27 | |
parent | 0f754df9f40b32753e03749168aaeb3d83121882 (diff) | |
download | mate-power-manager-1a3b70bbe58355684cf896449fd0405fc05fdc2b.tar.bz2 mate-power-manager-1a3b70bbe58355684cf896449fd0405fc05fdc2b.tar.xz |
button: Don't leak DBus proxy on successful logind lid handling
-rw-r--r-- | src/gpm-button.c | 2 |
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; } |