Fix NULL pointer dereference

This commit is contained in:
Chris Robinson
2018-02-12 22:20:43 -08:00
parent 6b76eddbe3
commit 2cb49e51a0
+1 -1
View File
@@ -221,7 +221,7 @@ BFormatDec *bformatdec_alloc()
void bformatdec_free(BFormatDec **dec)
{
if(dec)
if(dec && *dec)
{
al_free((*dec)->Samples);
(*dec)->Samples = NULL;