[gnome-settings-daemon] power: Fix a small memory leak
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Fix a small memory leak
- Date: Wed, 28 Jan 2015 10:38:58 +0000 (UTC)
commit a9e92f08c8e47d1e547708f20f81714d80688295
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 27 23:16:26 2015 +0100
power: Fix a small memory leak
Don't forget to unref the left-over variant.
https://bugzilla.gnome.org/show_bug.cgi?id=743456
plugins/power/gpm-common.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index 3cca737..c0cc1bc 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]