Skip to content
Snippets Groups Projects
Commit 26c72d29 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memory

parent 50bb9b87
No related branches found
No related tags found
No related merge requests found
......@@ -469,7 +469,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
}
}
if (!s->is_pipe)
avio_close(f[i]);
avio_closep(&f[i]);
if (ret[i] > 0)
pkt->size += ret[i];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment