Commit f144168d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/smacker: fix some memleaks

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fbab9a7c
...@@ -212,8 +212,10 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int ...@@ -212,8 +212,10 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int
if(get_bits1(gb)) { if(get_bits1(gb)) {
res = smacker_decode_tree(gb, &tmp1, 0, 0); res = smacker_decode_tree(gb, &tmp1, 0, 0);
if (res < 0) if (res < 0) {
return res; err = res;
goto error;
}
skip_bits1(gb); skip_bits1(gb);
if(tmp1.current > 1) { if(tmp1.current > 1) {
res = init_vlc(&vlc[0], SMKTREE_BITS, tmp1.length, res = init_vlc(&vlc[0], SMKTREE_BITS, tmp1.length,
...@@ -231,8 +233,10 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int ...@@ -231,8 +233,10 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int
} }
if(get_bits1(gb)){ if(get_bits1(gb)){
res = smacker_decode_tree(gb, &tmp2, 0, 0); res = smacker_decode_tree(gb, &tmp2, 0, 0);
if (res < 0) if (res < 0) {
return res; err = res;
goto error;
}
skip_bits1(gb); skip_bits1(gb);
if(tmp2.current > 1) { if(tmp2.current > 1) {
res = init_vlc(&vlc[1], SMKTREE_BITS, tmp2.length, res = init_vlc(&vlc[1], SMKTREE_BITS, tmp2.length,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment