mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
use av_freep() instead of av_free() + =NULL.
Originally committed as revision 18349 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0f55f341fe
commit
b02d3aef94
@ -586,8 +586,7 @@ static int avi_write_trailer(AVFormatContext *s)
|
||||
for (i=0; i<MAX_STREAMS; i++) {
|
||||
for (j=0; j<avi->indexes[i].ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++)
|
||||
av_free(avi->indexes[i].cluster[j]);
|
||||
av_free(avi->indexes[i].cluster);
|
||||
avi->indexes[i].cluster = NULL;
|
||||
av_freep(&avi->indexes[i].cluster);
|
||||
avi->indexes[i].ents_allocated = avi->indexes[i].entry = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user