diff options
author | Anusha Gugale <external.agogale@jp.adit-jv.com> | 2021-07-27 11:19:17 +0530 |
---|---|---|
committer | Anusha Gugale <external.agogale@jp.adit-jv.com> | 2021-08-24 19:02:03 +0530 |
commit | 814e686da31aa2261529e1e166ee952a1ac5ba54 (patch) | |
tree | 7775b1ff9a284d612266f95a61e706df4e6fdf1a | |
parent | d68ed0af3de3ee672c5ee38a7dff9e2c37ece1d5 (diff) |
cleanup buffer before closing applicationneedlefish_13.93.0needlefish/13.93.0marlin_12.93.0marlin_12.92.0marlin_12.91.0marlin_12.90.1marlin/12.93.0marlin/12.92.0marlin/12.91.0marlin/12.90.113.93.012.93.012.92.012.91.012.90.1
Bug-AGL: SPEC-4030
Signed-off-by: Anusha Gugale <external.agogale@jp.adit-jv.com>
Change-Id: I6c8bad2ba0dc073aae0a31d9e0a68f46d767e9eb
-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); |