summaryrefslogtreecommitdiff
path: root/plugins/power/gpm-common.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-01-27 23:16:26 +0100
committerBastien Nocera <hadess@hadess.net>2015-01-27 23:17:04 +0100
commita9e92f08c8e47d1e547708f20f81714d80688295 (patch)
tree9103b00404b82adfa3f658c14b2155eec6f4a751 /plugins/power/gpm-common.c
parent0698928803cbf120431e9e467632c1c5a47fd69b (diff)
downloadgnome-settings-daemon-a9e92f08c8e47d1e547708f20f81714d80688295.tar.gz
power: Fix a small memory leak
Don't forget to unref the left-over variant. https://bugzilla.gnome.org/show_bug.cgi?id=743456
Diffstat (limited to 'plugins/power/gpm-common.c')
-rw-r--r--plugins/power/gpm-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index 3cca737f..c0cc1bcc 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -183,6 +183,7 @@ gsd_power_is_hardware_a_vm (void)
str = g_variant_get_string (inner, NULL);
if (str != NULL && str[0] != '\0')
ret = TRUE;
+ g_variant_unref (inner);
out:
if (connection != NULL)
g_object_unref (connection);