From: Joonbum Ko Date: Fri, 11 Sep 2020 07:23:59 +0000 (+0900) Subject: set resize/destroy callback to null when wl_egl_window destroy. X-Git-Tag: submit/tizen/20200911.080016~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35c4a2c948c999f0c1ee39702bfdd40667b85e4b;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git set resize/destroy callback to null when wl_egl_window destroy. Change-Id: Icba12cf793918944567466465ae04720c16d062b Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index bb75442..d817dd1 100755 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1299,6 +1299,8 @@ __cb_destroy_callback(void *private) TPL_LOG_T(BACKEND, "[DESTROY_CB] wl_egl_window(%p) surf_source(%p)", surf_source->wl_egl_window, surf_source); g_mutex_lock(&surf_source->surf_mutex); + surf_source->wl_egl_window->destroy_window_callback = NULL; + surf_source->wl_egl_window->resize_callback = NULL; surf_source->wl_egl_window->driver_private = NULL; surf_source->wl_egl_window = NULL; surf_source->surf = NULL;