diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-08 20:58:32 +0100 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-08 20:59:40 +0100 |
commit | 4b102550089294a6fb4cdf3b4e133f21f16d3922 (patch) | |
tree | 2d93cb970c52c3b7cb525a61a0f2ba6b67440e5e /video/out/vo_wayland.c | |
parent | 0b1ba0bf64771167fbc31e08fb5853504390f03f (diff) | |
download | mpv-4b102550089294a6fb4cdf3b4e133f21f16d3922.tar.bz2 mpv-4b102550089294a6fb4cdf3b4e133f21f16d3922.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.
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); |