mp_ecore_timer_del(ad->duration_change_timer);
- PLAYER_ENTER_LOG("destroy");
- res = g_player_apis.destroy(_player);
- PLAYER_LEAVE_LOG("destroy");
+ if (g_player_apis.destroy) {
+ PLAYER_ENTER_LOG("destroy");
+ res = g_player_apis.destroy(_player);
+ PLAYER_LEAVE_LOG("destroy");
+ }
if (res != PLAYER_ERROR_NONE) {
ERROR_TRACE("Error when mp_player_mgr_destroy");
res = false;
g_requesting_cb = NULL;
g_requesting_cb_data = NULL;
+ memset(&g_player_apis, 0x0, sizeof(mp_player_api_s));
+
WARN_TRACE("player handle is destroyed..");
mp_util_release_cpu();
return res;
Mp_Playlist_Data *mp_playlist_data =
(Mp_Playlist_Data *) ad->popup_data;
mp_evas_object_del(mp_playlist_data->popup);
- IF_FREE(ad->popup_data);
}
break;
case MP_PLAYLIST_CREATED: