1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

vo_libmpv: fix null pointer dereference

Closes: #6507
This commit is contained in:
wnoun 2019-03-07 19:23:11 +08:00 committed by Jan Ekström
parent 199aabddcc
commit 94203436c4

View File

@ -297,9 +297,11 @@ void mpv_render_context_free(mpv_render_context *ctx)
forget_frames(ctx, true);
if (ctx->renderer) {
ctx->renderer->fns->destroy(ctx->renderer);
talloc_free(ctx->renderer->priv);
talloc_free(ctx->renderer);
}
talloc_free(ctx->dr);
talloc_free(ctx->dispatch);