summaryrefslogtreecommitdiff
path: root/libavformat/mlvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 20:11:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 20:19:20 +0100
commitd1d8f866b5400e1cb8ebbd06fde124642e894f31 (patch)
tree8391abe7f2ba3244e124b2dc3edd413f2e0cc4c2 /libavformat/mlvdec.c
parentedeaf6f3a4d7983f3b86465920c7d425dd290362 (diff)
avformat/mlvdec: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mlvdec.c')
-rw-r--r--libavformat/mlvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c
index 93d54e01e8..d0c51ae114 100644
--- a/libavformat/mlvdec.c
+++ b/libavformat/mlvdec.c
@@ -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;
}