diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-28 13:30:58 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-31 19:07:37 +0100 |
commit | 99ceae8cc3f123979bd5cd788ab28e61874d2e23 (patch) | |
tree | 025aa5921070242aa97af7899a608b4bb7fd4b68 | |
parent | ebe04ab69230ce36495a0cef0830a503de7f2067 (diff) | |
download | mpv-99ceae8cc3f123979bd5cd788ab28e61874d2e23.tar.bz2 mpv-99ceae8cc3f123979bd5cd788ab28e61874d2e23.tar.xz |
wayland/shm: fix memory leak
-rw-r--r-- | video/out/vo_wayland.c | 5 |
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) |