binding: media: fix memory leak with json objects 87/10687/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 24 Aug 2017 20:18:52 +0000 (13:18 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 24 Aug 2017 20:33:05 +0000 (13:33 -0700)
commit4a245cfd11c387c297bff9b000142a26683b1d1d
treefc41581fa0295e3a937302b60ddd11a4fff0ba29
parentbf1b11ab772ad3e8afe16fd061531fbaa36c4d82
binding: media: fix memory leak with json objects

In case of empty media insertion the allocated json_object's
weren't used. Run json_object_put to force the freeing of the
objects.

Bug-AGL: SPEC-842
Change-Id: I48fe8cf0824030119140fa581223c282855981d7
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
binding/mediaplayer-api.c