Commit ec2e952e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdpau_avcodec: fix mismatched alloc/free

parent 686df8fd
...@@ -288,7 +288,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, const es_format_t *fmt) ...@@ -288,7 +288,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, const es_format_t *fmt)
error: error:
vdp_release_x11(sys->vdp); vdp_release_x11(sys->vdp);
free(sys->context); av_free(sys->context);
free(sys); free(sys);
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -300,6 +300,6 @@ static void Close(vlc_va_t *va) ...@@ -300,6 +300,6 @@ static void Close(vlc_va_t *va)
if (sys->context->decoder != VDP_INVALID_HANDLE) if (sys->context->decoder != VDP_INVALID_HANDLE)
Deinit(va); Deinit(va);
vdp_release_x11(sys->vdp); vdp_release_x11(sys->vdp);
free(sys->context); av_free(sys->context);
free(sys); free(sys);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment