Fixed support for STATIC_MODES

This commit is contained in:
Jean-Marc Valin 2008-10-04 22:37:11 -04:00
parent 2b08d7a210
commit 25ec9ac39a
2 changed files with 28 additions and 10 deletions

View file

@ -446,7 +446,8 @@ void celt_mode_destroy(CELTMode *mode)
celt_free((int*)mode->eBands);
celt_free((int*)mode->pBands);
celt_free((int*)mode->allocVectors);
celt_free((celt_int16_t *)mode->energy_alloc);
celt_free((celt_word16_t*)mode->window);
mode->marker_start = MODEFREED;
@ -459,7 +460,6 @@ void celt_mode_destroy(CELTMode *mode)
mdct_clear(&mode->shortMdct);
pitch_state_free(mode->fft);
quant_prob_free(mode->prob);
celt_free((celt_int16_t *)mode->energy_alloc);
celt_free((CELTMode *)mode);
}