1
0
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:
Alexander Preisinger 2014-01-28 13:30:58 +01:00
parent 3114390c5b
commit 0f90288bf6

View File

@ -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)