diff options
Diffstat (limited to 'binding/mediaplayer-api.c')
-rw-r--r-- | binding/mediaplayer-api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binding/mediaplayer-api.c b/binding/mediaplayer-api.c index e81c98a..813ab97 100644 --- a/binding/mediaplayer-api.c +++ b/binding/mediaplayer-api.c @@ -86,8 +86,11 @@ static json_object *new_json_object_from_device(GList *list) json_object_array_add(jarray, jstring); } - if (jstring == NULL) + if (jstring == NULL) { + json_object_put(jarray); + json_object_put(jresp); return NULL; + } json_object_object_add(jresp, "Media", jarray); |