Added null checking to prevent assert checking failure. 30/247630/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Fri, 13 Nov 2020 02:30:11 +0000 (11:30 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 13 Nov 2020 02:30:11 +0000 (11:30 +0900)
Change-Id: I8bb6b5c21d1ea6721eef717525f1a87e0e8bf412
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index 35305a7..9d45f7b 100755 (executable)
@@ -1099,7 +1099,8 @@ _twe_thread_wl_disp_source_destroy(void *source)
                _twe_display_print_err(disp_source, "dispatch_queue_pending");
        }
 
-       __tpl_list_free(disp_source->presentation_feedbacks, (tpl_free_func_t)free);
+       if (disp_source->presentation_feedbacks)
+               __tpl_list_free(disp_source->presentation_feedbacks, (tpl_free_func_t)free);
 
        wl_event_queue_destroy(disp_source->ev_queue);
        g_mutex_unlock(&disp_source->wl_event_mutex);