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