aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/bformatdec.c2
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;