diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-07-27 14:55:23 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-07-28 15:13:21 -0700 |
commit | 351642ef3d3f57273c7d6d3122235c6c7957162c (patch) | |
tree | 0a28ae7aadd841f4e8930ab836b396139c0ed4aa /binding/mediaplayer-manager.c | |
parent | e799aff439bd86cf4048242069c5a277f48ec396 (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/mediaplayer-manager.c')
-rw-r--r-- | binding/mediaplayer-manager.c | 2 |
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(); } |