avformat/asfenc: use av_freep() for extra saftey

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-09-11 13:18:17 +02:00
parent 2832a82e17
commit 2175f76894
1 changed files with 1 additions and 1 deletions

View File

@ -884,7 +884,7 @@ static int asf_write_trailer(AVFormatContext *s)
asf_write_header1(s, file_size, data_size - asf->data_offset);
}
av_free(asf->index_ptr);
av_freep(&asf->index_ptr);
return 0;
}