]> git.sesse.net Git - vlc/commitdiff
vdpau: fix mismatched heap free function
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 11 Sep 2014 18:29:53 +0000 (21:29 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 11 Sep 2014 18:29:53 +0000 (21:29 +0300)
modules/hw/vdpau/avcodec.c

index c87013d2f585d34c137aa2de963af3571625a6c3..7a76d380bb66cf59aa2c97094ab0253f422e018e 100644 (file)
@@ -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;
     }