diff options
-rw-r--r-- | apps/codecs/libtremor/info.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/codecs/libtremor/info.c b/apps/codecs/libtremor/info.c index 62a31d510e..7c9af7ccdb 100644 --- a/apps/codecs/libtremor/info.c +++ b/apps/codecs/libtremor/info.c | |||
@@ -44,10 +44,12 @@ void vorbis_comment_init(vorbis_comment *vc){ | |||
44 | void vorbis_comment_clear(vorbis_comment *vc){ | 44 | void vorbis_comment_clear(vorbis_comment *vc){ |
45 | if(vc){ | 45 | if(vc){ |
46 | long i; | 46 | long i; |
47 | for(i=0;i<vc->comments;i++) | 47 | if(vc->user_comments){ |
48 | if(vc->user_comments[i])_ogg_free(vc->user_comments[i]); | 48 | for(i=0;i<vc->comments;i++) |
49 | if(vc->user_comments)_ogg_free(vc->user_comments); | 49 | if(vc->user_comments[i])_ogg_free(vc->user_comments[i]); |
50 | if(vc->comment_lengths)_ogg_free(vc->comment_lengths); | 50 | _ogg_free(vc->user_comments); |
51 | } | ||
52 | if(vc->comment_lengths)_ogg_free(vc->comment_lengths); | ||
51 | if(vc->vendor)_ogg_free(vc->vendor); | 53 | if(vc->vendor)_ogg_free(vc->vendor); |
52 | memset(vc,0,sizeof(*vc)); | 54 | memset(vc,0,sizeof(*vc)); |
53 | } | 55 | } |