From 309037a445cc62aca7f6b6e2db414f2cf4147ee6 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 4 Oct 2020 12:49:52 +0100 Subject: [PATCH] c/client: The client compositors doesn't own the native compositor --- src/xrt/compositor/client/comp_egl_glue.c | 3 +-- src/xrt/compositor/client/comp_gl_xlib_client.c | 3 +-- src/xrt/compositor/client/comp_vk_client.c | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/xrt/compositor/client/comp_egl_glue.c b/src/xrt/compositor/client/comp_egl_glue.c index e613c8b85..c9181e64b 100644 --- a/src/xrt/compositor/client/comp_egl_glue.c +++ b/src/xrt/compositor/client/comp_egl_glue.c @@ -51,8 +51,7 @@ static void client_egl_compositor_destroy(struct xrt_compositor *xc) { struct client_gl_compositor *c = client_gl_compositor(xc); - // Pipe down call into native compositor. - xrt_comp_native_destroy(&c->xcn); + free(c); } diff --git a/src/xrt/compositor/client/comp_gl_xlib_client.c b/src/xrt/compositor/client/comp_gl_xlib_client.c index 04dacd8c7..1932f6f9b 100644 --- a/src/xrt/compositor/client/comp_gl_xlib_client.c +++ b/src/xrt/compositor/client/comp_gl_xlib_client.c @@ -35,8 +35,7 @@ static void client_gl_xlib_compositor_destroy(struct xrt_compositor *xc) { struct client_gl_xlib_compositor *c = client_gl_xlib_compositor(xc); - // Pipe down call into native compositor. - xrt_comp_native_destroy(&c->base.xcn); + free(c); } diff --git a/src/xrt/compositor/client/comp_vk_client.c b/src/xrt/compositor/client/comp_vk_client.c index 03a6e7f34..029592d8e 100644 --- a/src/xrt/compositor/client/comp_vk_client.c +++ b/src/xrt/compositor/client/comp_vk_client.c @@ -163,8 +163,6 @@ client_vk_compositor_destroy(struct xrt_compositor *xc) c->vk.cmd_pool = VK_NULL_HANDLE; } - // Pipe down call into native compositor. - xrt_comp_native_destroy(&c->xcn); free(c); }