Fix #11 - s_mario_geo_pool free when null
This commit is contained in:
+6
-1
@@ -111,7 +111,12 @@ SM64_LIB_FN void sm64_global_terminate( void )
|
||||
s_init_global = false;
|
||||
s_init_one_mario = false;
|
||||
|
||||
alloc_only_pool_free( s_mario_geo_pool );
|
||||
if( s_mario_geo_pool )
|
||||
{
|
||||
alloc_only_pool_free( s_mario_geo_pool );
|
||||
s_mario_geo_pool = NULL;
|
||||
}
|
||||
|
||||
surfaces_unload_all();
|
||||
unload_mario_anims();
|
||||
memory_terminate();
|
||||
|
||||
Reference in New Issue
Block a user