wayland/shm: fix memory leak

This commit is contained in:
Alexander Preisinger 2014-01-28 13:30:58 +01:00
parent 3114390c5b
commit 0f90288bf6
1 changed files with 4 additions and 1 deletions

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)