[0.3.66] release evas setting before destroy handle 98/144398/1 accepted/tizen/unified/20170818.000130 submit/tizen/20170817.031725
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 16 Aug 2017 11:48:23 +0000 (20:48 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 16 Aug 2017 11:48:27 +0000 (20:48 +0900)
unset cb is impossible after destroy handle

Change-Id: Icf2ecc7f9192b04f7b3bc127c5aac746c8154d7b

src/player.c

index bb6ad47..f0c0a13 100644 (file)
@@ -1840,7 +1840,6 @@ int player_destroy(player_h player)
        set_null_user_cb_lock(pc->cb_info, MUSE_PLAYER_EVENT_TYPE_PREPARE);
        _player_release_internal_memory(pc);
 
-       player_msg_send(api, pc, ret_buf, ret);
 #ifdef TIZEN_FEATURE_EVAS_RENDERER
        if (CALLBACK_INFO(pc) && EVAS_INFO(pc)->support_video) {
                if (EVAS_HANDLE(pc)) {
@@ -1852,6 +1851,7 @@ int player_destroy(player_h player)
                }
        }
 #endif
+       player_msg_send(api, pc, ret_buf, ret);
 
        if (CALLBACK_INFO(pc)) {
                __player_remove_tsurf_list(pc);
@@ -1866,6 +1866,8 @@ int player_destroy(player_h player)
        pc = NULL;
 
        g_free(ret_buf);
+
+       LOGD("LEAVE 0x%X", ret);
        return ret;
 }