From: Joonbum Ko Date: Fri, 13 Nov 2020 02:30:11 +0000 (+0900) Subject: Added null checking to prevent assert checking failure. X-Git-Tag: submit/tizen/20201113.024925~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f55d4b7fdd9081e9772b19ac056a700f911a712b;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Added null checking to prevent assert checking failure. Change-Id: I8bb6b5c21d1ea6721eef717525f1a87e0e8bf412 Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 35305a7..9d45f7b 100755 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -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);