summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-20 16:53:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-20 16:53:14 +0100
commit081913aec53b7459711afe11f44a763dcd74703d (patch)
treeec9a7a884b1efdd48810386fb46bd3a3e766d318
parent7696e429c7608c2959570a7bc448a76bbfa70dd4 (diff)
avformat/id3v2: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/id3v2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index cbf43757fe..847d4af2c1 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -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);
}