summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-28 13:30:58 +0100
committerAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-28 13:30:58 +0100
commit0f90288bf6fa3f83374f662b5657e4ed7a7f3c67 (patch)
tree3069263a082354811b2b08e137081e6b618ed96d /video
parent3114390c5b6c243f5f8900bad1cbc9924ccdfdde (diff)
downloadmpv-0f90288bf6fa3f83374f662b5657e4ed7a7f3c67.tar.bz2
mpv-0f90288bf6fa3f83374f662b5657e4ed7a7f3c67.tar.xz
wayland/shm: fix memory leak
Diffstat (limited to 'video')
-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 ce6efa2ae5..d03e1bfd3d 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)