Mercurial > mplayer.hg
comparison libmpcodecs/vd_theora.c @ 21499:2e6ebc42fa9a
Fix memleak in theora decoder due to missing theora_comment_/theora_info_clear on uninit
author | reimar |
---|---|
date | Wed, 06 Dec 2006 10:42:30 +0000 |
parents | 6a08d0dabca8 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
21498:f2c58d4fb683 | 21499:2e6ebc42fa9a |
---|---|
125 { | 125 { |
126 theora_struct_t *context = (theora_struct_t *)sh->context; | 126 theora_struct_t *context = (theora_struct_t *)sh->context; |
127 | 127 |
128 if (context) | 128 if (context) |
129 { | 129 { |
130 theora_info_clear(&context->inf); | |
131 theora_comment_clear(&context->cc); | |
130 theora_clear (&context->st); | 132 theora_clear (&context->st); |
131 free (context); | 133 free (context); |
132 } | 134 } |
133 } | 135 } |
134 | 136 |