diff options
author | Chris Robinson <[email protected]> | 2018-02-12 22:20:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-12 22:20:43 -0800 |
commit | 2cb49e51a0d270f2a650d0969a5370ac50125c3f (patch) | |
tree | 3c8406a0c04b95a15beb5a4725676060fd604169 /Alc/bformatdec.c | |
parent | 6b76eddbe395dd7622ede8393f3561b7a7c2fa50 (diff) |
Fix NULL pointer dereference
Diffstat (limited to 'Alc/bformatdec.c')
-rw-r--r-- | Alc/bformatdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/bformatdec.c b/Alc/bformatdec.c index 6141aaba..bfd40b14 100644 --- a/Alc/bformatdec.c +++ b/Alc/bformatdec.c @@ -221,7 +221,7 @@ BFormatDec *bformatdec_alloc() void bformatdec_free(BFormatDec **dec) { - if(dec) + if(dec && *dec) { al_free((*dec)->Samples); (*dec)->Samples = NULL; |