[vlc-commits] vdpau_avcodec: fix mismatched alloc/free
Rémi Denis-Courmont
git at videolan.org
Tue Mar 4 21:56:52 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 4 22:55:46 2014 +0200| [ec2e952e7b82eb5aadee886e49aee631a5745e5f] | committer: Rémi Denis-Courmont
vdpau_avcodec: fix mismatched alloc/free
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec2e952e7b82eb5aadee886e49aee631a5745e5f
---
modules/hw/vdpau/avcodec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 268be5a..0b21f0f 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -288,7 +288,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, const es_format_t *fmt)
error:
vdp_release_x11(sys->vdp);
- free(sys->context);
+ av_free(sys->context);
free(sys);
return VLC_EGENERIC;
}
@@ -300,6 +300,6 @@ static void Close(vlc_va_t *va)
if (sys->context->decoder != VDP_INVALID_HANDLE)
Deinit(va);
vdp_release_x11(sys->vdp);
- free(sys->context);
+ av_free(sys->context);
free(sys);
}
More information about the vlc-commits
mailing list