diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-08 20:58:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-15 20:50:52 +0100 |
commit | a63fab8921886a4e4dcf5df2ef21aa408fd79e10 (patch) | |
tree | b9a12303872781675483d573e6e74b5c9ae0f53d /video/out/vo_wayland.c | |
parent | 4ee8d8d3f9511c37a905d37bfdd287eab14ed0cc (diff) | |
download | mpv-a63fab8921886a4e4dcf5df2ef21aa408fd79e10.tar.bz2 mpv-a63fab8921886a4e4dcf5df2ef21aa408fd79e10.tar.xz |
wayland: fix memory leaks
There are still some leaks from wayland-cursor stuff, but there is no way to
free the memory as user of the cursor library.
Conflicts:
video/out/wayland_common.c
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r-- | video/out/vo_wayland.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c index 2c0d1ef798..c1094bc6a4 100644 --- a/video/out/vo_wayland.c +++ b/video/out/vo_wayland.c @@ -651,6 +651,9 @@ static void uninit(struct vo *vo) for (int i = 0; i < MAX_BUFFERS; ++i) destroy_shm_buffer(&p->buffers[i]); + if (p->redraw_callback) + wl_callback_destroy(p->redraw_callback); + talloc_free(p->original_image); vo_wayland_uninit(vo); |