ff_id3v2_free_extra_meta: set the pointer pointing to extra_meta to NULL
authorPeter Ross <pross@xvid.org>
Sat, 19 Apr 2014 02:12:00 +0000 (12:12 +1000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Apr 2014 02:24:24 +0000 (04:24 +0200)
Fixes ticket #3530.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/id3v2.c

index 8a8989b..15b58d7 100644 (file)
@@ -937,6 +937,8 @@ void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
         av_freep(&current);
         current = next;
     }
+
+    *extra_meta = NULL;
 }
 
 int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)