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/ALc.c | |
parent | dce497fbca5d3b3b843e4475a94febd9105de87c (diff) |
Make bformatdec_free and ambiup_free clear the freed pointer
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -2469,11 +2469,8 @@ static ALCvoid FreeDevice(ALCdevice *device) al_free(device->Uhj_Encoder); device->Uhj_Encoder = NULL; - bformatdec_free(device->AmbiDecoder); - device->AmbiDecoder = NULL; - - ambiup_free(device->AmbiUp); - device->AmbiUp = NULL; + bformatdec_free(&device->AmbiDecoder); + ambiup_free(&device->AmbiUp); al_free(device->Stablizer); device->Stablizer = NULL; |