Permalink
Browse files

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>
  • Loading branch information...
1 parent f9d6ae5 commit dfdeb9ad9bad6ba4ad6110835ab8effe6fa8bbb2 @rouseabout rouseabout committed with fritsch Apr 19, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/ffmpeg/libavformat/id3v2.c
@@ -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)

0 comments on commit dfdeb9a

Please sign in to comment.