stb_vorbis: Fix memory leak in start_decoder().

This commit is contained in:
Jörn Heusipp 2016-03-24 18:20:39 +01:00
parent 8aa9afb30e
commit 0e3506d7d1

View File

@ -3883,7 +3883,6 @@ static int start_decoder(vorb *f)
} }
} }
} }
setup_temp_free(f, mults,sizeof(mults[0])*c->lookup_values);
c->lookup_type = 2; c->lookup_type = 2;
} }
else else
@ -3899,11 +3898,11 @@ static int start_decoder(vorb *f)
if (c->sequence_p) if (c->sequence_p)
last = val; last = val;
} }
setup_temp_free(f, mults,sizeof(mults[0])*c->lookup_values);
} }
#ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK #ifndef STB_VORBIS_DIVIDES_IN_CODEBOOK
skip:; skip:;
#endif #endif
setup_temp_free(f, mults, sizeof(mults[0])*c->lookup_values);
CHECK(f); CHECK(f);
} }