summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wayland.c
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-08-26 18:35:57 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-08-26 20:34:06 +0200
commit56644b8abcb5478f7ba316efbcb3fb4facd7c418 (patch)
tree84f920de51be92385ccf7791fe3e0c5c54e61741 /video/out/vo_wayland.c
parentd3c4ba3ab824f4625c41270744249f50dba55acb (diff)
downloadmpv-56644b8abcb5478f7ba316efbcb3fb4facd7c418.tar.bz2
mpv-56644b8abcb5478f7ba316efbcb3fb4facd7c418.tar.xz
wayland: fix memory leaks
Diffstat (limited to 'video/out/vo_wayland.c')
-rw-r--r--video/out/vo_wayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_wayland.c b/video/out/vo_wayland.c
index 9871503b81..cd39158250 100644
--- a/video/out/vo_wayland.c
+++ b/video/out/vo_wayland.c
@@ -525,6 +525,7 @@ static int query_format(struct vo *vo, uint32_t format)
static int reconfig(struct vo *vo, struct mp_image_params *fmt, int flags)
{
struct priv *p = vo->priv;
+ mp_image_unrefp(&p->original_image);
p->width = vo->dwidth;
p->height = vo->dheight;
@@ -568,6 +569,8 @@ static void uninit(struct vo *vo)
for (int i = 0; i < MAX_BUFFERS; ++i)
destroy_shm_buffer(&p->buffers[i]);
+ talloc_free(p->original_image);
+
vo_wayland_uninit(vo);
}