aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplayer-manager.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-07-27 14:55:23 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-07-28 15:13:21 -0700
commit6873bf7083349756314691589c45a0a43402fc47 (patch)
treeb3c9ac36ca067c163e5a09791fcbbcc15761375a /mediaplayer-manager.c
parent6a0857aa2b06826de0b7f4dcf583d582fd63bfea (diff)
binding: media: fix memory leak in linked list
Linked list wans't be freed with g_list_free_full when it was no longer needed. Bug-AGL: SPEC-790 Change-Id: Ib07d24f57e606d979a6158e289d5fdf59d31bcd1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'mediaplayer-manager.c')
-rw-r--r--mediaplayer-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mediaplayer-manager.c b/mediaplayer-manager.c
index c14f0a4..6265312 100644
--- a/mediaplayer-manager.c
+++ b/mediaplayer-manager.c
@@ -159,6 +159,8 @@ on_interface_proxy_properties_changed (GDBusProxy *proxy,
if (list != NULL && g_RegisterCallback.binding_device_added)
g_RegisterCallback.binding_device_added(list);
+ g_list_free_full(list, g_free);
+
ListUnlock();
}