avformat/mlvdec: Use avio_closep() to avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Jan 2015 19:11:00 +0000 (20:11 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Jan 2015 19:19:20 +0000 (20:19 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mlvdec.c

index 93d54e0..d0c51ae 100644 (file)
@@ -445,7 +445,7 @@ static int read_close(AVFormatContext *s)
     int i;
     for (i = 0; i < 100; i++)
         if (mlv->pb[i])
-            avio_close(mlv->pb[i]);
+            avio_closep(&mlv->pb[i]);
     return 0;
 }