1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/id3v2: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-12-20 16:53:14 +01:00
parent 7696e429c7
commit 081913aec5

View File

@ -218,10 +218,10 @@ static int check_tag(AVIOContext *s, int offset, unsigned int len)
static void free_geobtag(void *obj)
{
ID3v2ExtraMetaGEOB *geob = obj;
av_free(geob->mime_type);
av_free(geob->file_name);
av_free(geob->description);
av_free(geob->data);
av_freep(&geob->mime_type);
av_freep(&geob->file_name);
av_freep(&geob->description);
av_freep(&geob->data);
av_free(geob);
}