diff --git a/src/packages/game/IZ_app.c b/src/packages/game/IZ_app.c index 682cda1..f0ce4f5 100644 --- a/src/packages/game/IZ_app.c +++ b/src/packages/game/IZ_app.c @@ -71,9 +71,9 @@ IZ_AppInitializeResult IZ_AppInitialize(struct IZ_App* app, u8 argc, const char* } void IZ_AppTeardown(struct IZ_App* app) { + IZ_PoolTeardown(&app->pool); IZ_LogInfo(IZ_LOG_CATEGORY_GLOBAL, "net", "Shutting down..."); IZ_NetClientDisconnect(&app->net_state); - IZ_PoolTeardown(&app->pool); IZ_InputTeardown(&app->input_state); IZ_VideoTeardown(&app->video_state); IZ_LogInfo(IZ_LOG_CATEGORY_GLOBAL, "global", "Stopping %s...", IZ_APP_NAME);