binding: media: fix memory leak with json objects 25/10725/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 24 Aug 2017 20:18:52 +0000 (13:18 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 30 Aug 2017 17:09:29 +0000 (17:09 +0000)
commit866fc80a1010eb14a30ead1685a2066e04a0c473
treed4beda1528d11d12b0c7ffb2b16d208841bf7ed1
parentdc37667bdd91b6b267473d97870ed6d85204a4cf
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