summaryrefslogtreecommitdiffstats
path: root/video/vaapi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-29 15:09:26 +0200
committerwm4 <wm4@nowhere>2017-04-29 15:09:40 +0200
commitb5b3aadf40b5a94d79b4ec3f1d3a1892eba01f6a (patch)
treee4b98c4c30f268c21eb58a6a40ed06b5d67935d3 /video/vaapi.c
parent142b2f23d429389a0b5acd674b376a06953f9129 (diff)
downloadmpv-b5b3aadf40b5a94d79b4ec3f1d3a1892eba01f6a.tar.bz2
mpv-b5b3aadf40b5a94d79b4ec3f1d3a1892eba01f6a.tar.xz
vdpau, vaapi: unref libavutil device ref
It's a simple memory leak. (The API objects were destroyed anyway.)
Diffstat (limited to 'video/vaapi.c')
-rw-r--r--video/vaapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/vaapi.c b/video/vaapi.c
index 171ccdfcbd..76a197cca2 100644
--- a/video/vaapi.c
+++ b/video/vaapi.c
@@ -224,6 +224,8 @@ error:
void va_destroy(struct mp_vaapi_ctx *ctx)
{
if (ctx) {
+ av_buffer_unref(&ctx->av_device_ref);
+
if (ctx->display)
vaTerminate(ctx->display);