diff options
author | Chris Robinson <[email protected]> | 2018-02-12 20:48:28 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-12 20:48:28 -0800 |
commit | 4d417f3dd4c6fee0e5050768a231c65a700ee417 (patch) | |
tree | 712c17c72e06d855e88bfa7bd8c4e02c9e0b187c /Alc/bformatdec.h | |
parent | dce497fbca5d3b3b843e4475a94febd9105de87c (diff) |
Make bformatdec_free and ambiup_free clear the freed pointer
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r-- | Alc/bformatdec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h index c897ac3a..c997c0b9 100644 --- a/Alc/bformatdec.h +++ b/Alc/bformatdec.h @@ -27,7 +27,7 @@ struct AmbiUpsampler; struct BFormatDec *bformatdec_alloc(); -void bformatdec_free(struct BFormatDec *dec); +void bformatdec_free(struct BFormatDec **dec); void bformatdec_reset(struct BFormatDec *dec, const struct AmbDecConf *conf, ALsizei chancount, ALuint srate, const ALsizei chanmap[MAX_OUTPUT_CHANNELS]); /* Decodes the ambisonic input to the given output channels. */ @@ -41,7 +41,7 @@ void bformatdec_upSample(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[B * with bformatdec. */ struct AmbiUpsampler *ambiup_alloc(); -void ambiup_free(struct AmbiUpsampler *ambiup); +void ambiup_free(struct AmbiUpsampler **ambiup); void ambiup_reset(struct AmbiUpsampler *ambiup, const ALCdevice *device); void ambiup_process(struct AmbiUpsampler *ambiup, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei OutChannels, const ALfloat (*restrict InSamples)[BUFFERSIZE], ALsizei SamplesToDo); |