Use the TRY_FREE_AND_SET_NULL macro where appropriate
This commit is contained in:
@@ -2160,8 +2160,7 @@ static bool32 IsDisplaySubtask0Active(void)
|
||||
static void FreeDisplay(void)
|
||||
{
|
||||
FreeSprites();
|
||||
if (sDisplay)
|
||||
FREE_AND_SET_NULL(sDisplay);
|
||||
TRY_FREE_AND_SET_NULL(sDisplay);
|
||||
|
||||
FreeAllWindowBuffers();
|
||||
gScanlineEffect.state = 3;
|
||||
|
||||
Reference in New Issue
Block a user