aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-12 20:48:28 -0800
committerChris Robinson <[email protected]>2018-02-12 20:48:28 -0800
commit4d417f3dd4c6fee0e5050768a231c65a700ee417 (patch)
tree712c17c72e06d855e88bfa7bd8c4e02c9e0b187c /Alc/ALc.c
parentdce497fbca5d3b3b843e4475a94febd9105de87c (diff)
Make bformatdec_free and ambiup_free clear the freed pointer
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index db100d7c..8c743838 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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;