summaryrefslogtreecommitdiffstats
path: root/binding/afm-mediaplayer-binding.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-06-05 14:48:18 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-06-05 15:14:41 -0700
commita4afb6e5a77da6471aac6612514e23898139b644 (patch)
tree60a9bc68819ef74cc86ad594d765763fe3fdfcfd /binding/afm-mediaplayer-binding.c
parent6980e5c3b7151745c5303253702293d4edb8e852 (diff)
binding: mediaplayer: fix refcount imbalanceguppy_7.0.4guppy_7.0.3guppy/7.0.4guppy/7.0.37.0.47.0.3guppy
JSON response that was passed to onevent callback was being resent in an event without refcount being increased. Resulting assertion failure: json_object_put: Assertion `jso->_ref_count > 0' failed. Bug-AGL: SPEC-2488 Change-Id: I40cf36f0e7e96c5974bd6b6c49b5044bbe199b77 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/afm-mediaplayer-binding.c')
-rw-r--r--binding/afm-mediaplayer-binding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binding/afm-mediaplayer-binding.c b/binding/afm-mediaplayer-binding.c
index 4720b63..36fce89 100644
--- a/binding/afm-mediaplayer-binding.c
+++ b/binding/afm-mediaplayer-binding.c
@@ -986,6 +986,7 @@ static void onevent(afb_api_t api, const char *event, struct json_object *object
pthread_mutex_unlock(&mutex);
+ json_object_get(object);
afb_event_push(metadata_event, object);
return;