Fix NULL pointer dereference
This commit is contained in:
+1
-1
@@ -221,7 +221,7 @@ BFormatDec *bformatdec_alloc()
|
||||
|
||||
void bformatdec_free(BFormatDec **dec)
|
||||
{
|
||||
if(dec)
|
||||
if(dec && *dec)
|
||||
{
|
||||
al_free((*dec)->Samples);
|
||||
(*dec)->Samples = NULL;
|
||||
|
||||
Reference in New Issue
Block a user