summaryrefslogtreecommitdiffstats
path: root/binding
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-31 19:15:21 +0000
commitdc37667bdd91b6b267473d97870ed6d85204a4cf (patch)
tree90af14507d2b95ff70046a7f94754e4f40a4a3b5 /binding
parent71b6e40301a2e23edfeaea5c33187db14c4d8917 (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 'binding')
-rw-r--r--binding/mediaplayer-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/binding/mediaplayer-manager.c b/binding/mediaplayer-manager.c
index c14f0a4..6265312 100644
--- a/binding/mediaplayer-manager.c
+++ b/binding/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();
}