mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vdpau, vaapi: unref libavutil device ref
It's a simple memory leak. (The API objects were destroyed anyway.)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user