summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Jesner <alexander@jesner.eu>2014-08-15 15:50:50 +0200
committerRichard Hughes <richard@hughsie.com>2014-08-18 12:49:41 +0100
commit47c6974fc0c375eee18ebdfce9891643bcf209de (patch)
treecccf954bb9552a63b1beed00c80e6ff8c810dc0e
parente4ad754351b67c00438c736c14bb948905708009 (diff)
downloadupower-47c6974fc0c375eee18ebdfce9891643bcf209de.tar.gz
Free the obtained device list array after use
Signed-off-by: Richard Hughes <richard@hughsie.com>
-rw-r--r--src/up-daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c
index d53facc..29e6aab 100644
--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -283,6 +283,8 @@ up_daemon_update_display_battery (UpDaemon *daemon)
}
out:
+ g_ptr_array_unref (array);
+
/* Did anything change? */
if (daemon->priv->kind == kind_total &&
daemon->priv->state == state_total &&