[0.6.184] Fix that bus_msg_q is double freed When the player creation fails 94/204094/1
authorGilbok Lee <gilbok.lee@samsung.com>
Fri, 19 Apr 2019 07:07:02 +0000 (16:07 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 19 Apr 2019 07:07:59 +0000 (16:07 +0900)
Change-Id: Ie10997815c47f38579ad6a07e86ae71a27f7bc47

src/mm_player_priv.c

index 79f4026..eea8a2d 100644 (file)
@@ -4683,6 +4683,7 @@ ERROR:
        /* free update tag lock */
        g_mutex_clear(&player->update_tag_lock);
        g_queue_free(player->bus_msg_q);
+       player->bus_msg_q = NULL;
        /* free gapless play thread */
        if (player->gapless_play_thread) {
                MMPLAYER_GAPLESS_PLAY_THREAD_LOCK(player);