speex_preprocess_state_destroy(encprestate); speex_bits_destroy(@encbits); speex_encoder_destroy(encstate);