[vlc-commits] vdpau: fix mismatched heap free function

Rémi Denis-Courmont git at videolan.org
Thu Sep 11 20:30:43 CEST 2014


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 11 21:29:53 2014 +0300| [180ba5dec306f3c1225b01617dc6bc235928a933] | committer: Rémi Denis-Courmont

vdpau: fix mismatched heap free function

(cherry picked from commit d450f9bb8abc35f5e87065c56631109ddc173c0e)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=180ba5dec306f3c1225b01617dc6bc235928a933
---

 modules/hw/vdpau/avcodec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index c87013d..7a76d38 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -221,7 +221,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, const es_format_t *fmt)
     err = vdp_get_x11(NULL, -1, &sys->vdp, &sys->device);
     if (err != VDP_STATUS_OK)
     {
-        free(sys->context);
+        av_free(sys->context);
         free(sys);
         return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list