Svace issue fixed 49/191449/1 tizen_5.0 submit/tizen/20181017.174751 submit/tizen_5.0/20181101.000008
authorVikas Kumar Agrawal <vikas.ag@samsung.com>
Wed, 17 Oct 2018 15:50:14 +0000 (21:20 +0530)
committerVikas Kumar Agrawal <vikas.ag@samsung.com>
Wed, 17 Oct 2018 15:50:14 +0000 (21:20 +0530)
Change-Id: I8668420caf0df851f132060dbbdf12ccc5536bdc

src/common/mp-common.c
src/widget/mp-artist-list.c

index 214a01f..1023653 100644 (file)
@@ -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);
 
index 320b5b8..46329e5 100644 (file)
@@ -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);
 }