mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 15:27:00 +00:00
wayland/shm: fix memory leak
This commit is contained in:
parent
3114390c5b
commit
0f90288bf6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user