From 3f0e92a0f23156e524f38e7308280e23f56c7fff Mon Sep 17 00:00:00 2001 From: Alexander Jesner Date: Fri, 15 Aug 2014 15:50:50 +0200 Subject: [PATCH] In 'up_daemon_update_display_battery': free the obtained device list array after use. --- src/up-daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/up-daemon.c b/src/up-daemon.c index d53facc..175c45c 100644 --- a/src/up-daemon.c +++ b/src/up-daemon.c @@ -264,6 +264,8 @@ up_daemon_update_display_battery (UpDaemon *daemon) num_batteries++; } + g_ptr_array_unref (array); + /* Handle multiple batteries */ if (num_batteries <= 1) goto out; -- 2.0.4