libavcodec/libxavs: Use av_freep() avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Nov 2014 10:33:00 +0000 (11:33 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Nov 2014 10:33:41 +0000 (11:33 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libxavs.c

index 92dcece..ed86b61 100644 (file)
@@ -201,7 +201,7 @@ static av_cold int XAVS_close(AVCodecContext *avctx)
     XavsContext *x4 = avctx->priv_data;
 
     av_freep(&avctx->extradata);
-    av_free(x4->sei);
+    av_freep(&x4->sei);
     av_freep(&x4->pts_buffer);
 
     if (x4->enc)