mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 11:43:37 +01:00
Use TRY_FREE_AND_SET_NULL macro for sFlyMap
This commit is contained in:
parent
35bdaccedc
commit
bb3992e7dc
@ -2024,11 +2024,7 @@ static void CB_ExitFlyMap(void)
|
||||
{
|
||||
SetMainCallback2(CB2_ReturnToPartyMenuFromFlyMap);
|
||||
}
|
||||
if (sFlyMap != NULL)
|
||||
{
|
||||
free(sFlyMap);
|
||||
sFlyMap = NULL;
|
||||
}
|
||||
TRY_FREE_AND_SET_NULL(sFlyMap);
|
||||
FreeAllWindowBuffers();
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user