diff options
Diffstat (limited to 'src/wth-receiver-gst-shm.c')
-rw-r--r-- | src/wth-receiver-gst-shm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wth-receiver-gst-shm.c b/src/wth-receiver-gst-shm.c index be21f6c..78a07da 100644 --- a/src/wth-receiver-gst-shm.c +++ b/src/wth-receiver-gst-shm.c @@ -613,7 +613,10 @@ destroy_window(struct window *window) { if (window->callback) wl_callback_destroy(window->callback); - + if(window->buffers[0].buffer) + wl_buffer_destroy(window->buffers[0].buffer); + if(window->buffers[1].buffer) + wl_buffer_destroy(window->buffers[1].buffer); if (window->xdg_toplevel) xdg_toplevel_destroy(window->xdg_toplevel); @@ -696,6 +699,8 @@ create_display(void) static void destroy_display(struct display *display) { + if(display->shm) + wl_shm_destroy(display->shm); if (display->compositor) wl_compositor_destroy(display->compositor); |