diff options
-rw-r--r-- | binding/afm-mediaplayer-binding.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/binding/afm-mediaplayer-binding.c b/binding/afm-mediaplayer-binding.c index 98887c1..9eea30e 100644 --- a/binding/afm-mediaplayer-binding.c +++ b/binding/afm-mediaplayer-binding.c @@ -163,12 +163,11 @@ static gboolean populate_from_json(struct playlist_item *item, json_object *jdic ret = json_object_object_get_ex(jdict, "type", &val); if (!ret) { - g_object_unref(item->media_path); + g_free(item->media_path); return ret; } item->media_type = g_strdup(json_object_get_string(val)); - ret = json_object_object_get_ex(jdict, "title", &val); if (ret) { item->title = g_strdup(json_object_get_string(val)); |