[gnome-settings-daemon] power: Fix leak from GetActive() result
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Fix leak from GetActive() result
- Date: Mon, 21 Jan 2013 15:47:33 +0000 (UTC)
commit 47534d70a96ca295837ea4fe1f7a47c2367df0af
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 21 11:32:35 2013 +0100
power: Fix leak from GetActive() result
plugins/power/gsd-power-manager.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 2b63ed9..376a98e 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2819,6 +2819,7 @@ get_active_cb (GDBusProxy *proxy,
g_variant_get (res, "(b)", &active);
manager->priv->screensaver_active = active;
+ g_variant_unref (res);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]