Commit c91bdb33 authored by aurel's avatar aurel

use av_freep() instead of av_free() + =NULL.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18349 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 23cead50
...@@ -586,8 +586,7 @@ static int avi_write_trailer(AVFormatContext *s) ...@@ -586,8 +586,7 @@ static int avi_write_trailer(AVFormatContext *s)
for (i=0; i<MAX_STREAMS; i++) { for (i=0; i<MAX_STREAMS; i++) {
for (j=0; j<avi->indexes[i].ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++) 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[j]);
av_free(avi->indexes[i].cluster); av_freep(&avi->indexes[i].cluster);
avi->indexes[i].cluster = NULL;
avi->indexes[i].ents_allocated = avi->indexes[i].entry = 0; avi->indexes[i].ents_allocated = avi->indexes[i].entry = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment