From a31ea89a14015c01a88d268612d8cdca626945d1 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Wed, 27 Sep 2017 15:08:40 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Initialized the variables of wl_egl_window that will not be used. Change-Id: Ic8f5286b1881de7c7653de716889923c9d801e8c Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index d14fdd8..3e1d2b3 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1731,11 +1731,16 @@ _twe_thread_wl_surf_source_destroy(void *source) if (surf_source->wl_egl_window) { TPL_LOG_T("WL_EGL", "twe_surface(%p) wl_egl_window(%p) wl_surface(%p)", surf_source, surf_source->wl_egl_window, surf_source->surf); + surf_source->wl_egl_window->destroy_window_callback = NULL; + surf_source->wl_egl_window->resize_callback = NULL; + surf_source->wl_egl_window->rotate_callback = NULL; surf_source->wl_egl_window->private = NULL; surf_source->wl_egl_window = NULL; surf_source->surf = NULL; } else { - TPL_LOG_T("WL_EGL", "twe_surface(%p) native window is already destroyed"); + TPL_LOG_T("WL_EGL", + "twe_surface(%p) native window is already destroyed", + surf_source); } TPL_OBJECT_UNLOCK(&disp_source->obj); -- 2.7.4