Skip to content

Commit

Permalink
ff_id3v2_free_extra_meta: set the pointer pointing to extra_meta to NULL
Browse files Browse the repository at this point in the history
Fixes ticket #3530.

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
rouseabout authored and michaelni committed Apr 19, 2014
1 parent 549bbdf commit c94305a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavformat/id3v2.c
Expand Up @@ -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)
Expand Down

0 comments on commit c94305a

Please sign in to comment.