summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r--video/out/vo_wayland.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index 14823db1d6..2cc1ba7fb2 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -478,7 +478,10 @@ static void frame_handle_redraw(void *data,
buffer_finalise_front(buf);
// to avoid multiple resizes of non-shown frames
- p->resize_attach = false;
+ if (p->resize_attach) {
+ destroy_shm_buffer(&p->tmp_buffer);
+ p->resize_attach = false;
+ }
}
else {
if (callback)