tpl_wayland_egl(_thread): Initialized the callbacks of wl_egl_window to NULL when... 42/197542/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Tue, 8 Jan 2019 07:20:10 +0000 (16:20 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Mon, 14 Jan 2019 04:15:59 +0000 (13:15 +0900)
Change-Id: I288df9cb513fea71f615f66068b4109b4677fbb9
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl.c
src/tpl_wayland_egl_thread.c

index 5b2431f..387882d 100644 (file)
@@ -674,6 +674,11 @@ __tpl_wayland_egl_surface_fini(tpl_surface_t *surface)
                /* TPL_ASSERT(wl_egl_window->surface); */ /* to be enabled once evas/gl patch is in place */
 
                wl_egl_window->private = NULL;
+               wl_egl_window->resize_callback = NULL;
+               wl_egl_window->rotate_callback = NULL;
+               wl_egl_window->get_rotation_capability = NULL;
+               wl_egl_window->set_frontbuffer_callback = NULL;
+               wl_egl_window->set_window_serial_callback = NULL;
 
                __tpl_wayland_egl_surface_buffer_flusher_fini(surface);
 
index 3e9a913..1b7cb84 100644 (file)
@@ -2318,9 +2318,11 @@ _twe_thread_wl_surf_source_destroy(void *source)
        if (surf_source->wl_egl_window) {
                TPL_LOG_T(BACKEND, "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->set_window_serial_callback = NULL;
                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->get_rotation_capability = NULL;
                surf_source->wl_egl_window->private = NULL;
                surf_source->wl_egl_window = NULL;
                surf_source->surf = NULL;