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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/102/head
Michael Niedermayer 10 years ago
parent 50bb9b87ab
commit 26c72d2941
  1. 2
      libavformat/img2dec.c

@ -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];
}

Loading…
Cancel
Save