Added missing destroy of bound presentation interface. 85/231085/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 9 Apr 2020 04:15:52 +0000 (13:15 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Mon, 13 Apr 2020 07:15:47 +0000 (16:15 +0900)
Change-Id: I61344fb95eba06ec5b3a281bf09a3756edc6e460
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index b1c1f4eb6f8d395b1dc90d187f3c70b5a1fb4c66..4f6acf172324f31a08a47687f31c6fb131c29976 100755 (executable)
@@ -924,6 +924,13 @@ _twe_display_wayland_fini(twe_wl_disp_source *disp_source)
        if (disp_source->wl_vk_client) {
                TPL_LOG_T(BACKEND, "wl_vk_client(%p) fini.", disp_source->wl_vk_client);
                wayland_vulkan_destroy(disp_source->wl_vk_client);
+               disp_source->wl_vk_client = NULL;
+       }
+
+       if (disp_source->presentation) {
+               TPL_LOG_T(BACKEND, "wp_presentation(%p) fini.", disp_source->presentation);
+               wp_presentation_destroy(disp_source->presentation);
+               disp_source->presentation = NULL;
        }
 }