Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
26c72d2941
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/img2dec.c

+ 1
- 1
libavformat/img2dec.c View File

@@ -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