ff_id3v2_free_extra_meta: set the pointer pointing to extra_meta to NULL

Fixes ticket #3530.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Peter Ross 2014-04-19 12:12:00 +10:00 committed by Michael Niedermayer
parent 549bbdfb4b
commit c94305ae23
1 changed files with 2 additions and 0 deletions

View File

@ -937,6 +937,8 @@ void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
av_freep(&current); av_freep(&current);
current = next; current = next;
} }
*extra_meta = NULL;
} }
int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta) int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)