From: Vikas Kumar Agrawal Date: Wed, 17 Oct 2018 15:50:14 +0000 (+0530) Subject: Svace issue fixed X-Git-Tag: submit/tizen/20181017.174751^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8393bf7c9f99683e181d4e0843f52748451e7ab;p=profile%2Fmobile%2Fapps%2Fnative%2Fmusic-player.git Svace issue fixed Change-Id: I8668420caf0df851f132060dbbdf12ccc5536bdc --- diff --git a/src/common/mp-common.c b/src/common/mp-common.c index 214a01f..1023653 100644 --- a/src/common/mp-common.c +++ b/src/common/mp-common.c @@ -1487,8 +1487,10 @@ _mp_common_view_by_folder(const char *path, app_control_h app_control) mp_plst_item *cur = NULL; char *file_path = NULL; - MP_CHECK_FALSE(ad); - + if (!ad) { + IF_FREE(folder); + return false; + } mp_common_create_playlist_mgr(); mp_playlist_mgr_clear(ad->playlist_mgr); diff --git a/src/widget/mp-artist-list.c b/src/widget/mp-artist-list.c index 320b5b8..46329e5 100644 --- a/src/widget/mp-artist-list.c +++ b/src/widget/mp-artist-list.c @@ -1026,12 +1026,8 @@ static void _mp_artist_list_append_recently_added(void *thiz, mp_media_list_h sv MpArtistList_t *list = thiz; MP_CHECK(list); MP_CHECK(list->recently_added_genlist); - mp_list_item_data_t *item_data; - item_data = mp_list_item_data_create(MP_LIST_ITEM_TYPE_GROUP_TITLE); - MP_CHECK(item_data); - item_data->it = - elm_genlist_item_append(list->recently_added_genlist, list->itc_genlist_recently_added, svc_handle, + elm_genlist_item_append(list->recently_added_genlist, list->itc_genlist_recently_added, svc_handle, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); }