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)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 19 Apr 2014 11:20:04 +0000 (13:20 +0200)
Fixes ticket #3530.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c94305ae23318c8956a30485cd5642829f4f16a9)

libavformat/id3v2.c

index 2cab5ac..2e8d06d 100644 (file)
@@ -822,6 +822,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)