[qfusion-cvs-commits] SF.net SVN: l33t: [799] trunk/qfusion/source/client
Brought to you by:
digiman
From: qfusion s. c. <l33...@li...> - 2007-12-06 00:46:17
|
Revision: 799 http://l33t.svn.sourceforge.net/l33t/?rev=799&view=rev Author: digiman Date: 2007-12-05 16:46:16 -0800 (Wed, 05 Dec 2007) Log Message: ----------- Free memory pools BEFORE unloading the game modules as we may still need filename pointers for memory debugging (the __FILE__ macro) Fixes crash with developer 1 and developerMemory 1 Modified Paths: -------------- trunk/qfusion/source/client/cl_game.c trunk/qfusion/source/client/cl_ui.c Modified: trunk/qfusion/source/client/cl_game.c =================================================================== --- trunk/qfusion/source/client/cl_game.c 2007-12-06 00:39:12 UTC (rev 798) +++ trunk/qfusion/source/client/cl_game.c 2007-12-06 00:46:16 UTC (rev 799) @@ -257,8 +257,8 @@ cls.cgameActive = qfalse; cge->Shutdown (); + Mem_FreePool( &cl_gamemodulepool ); Sys_UnloadGameLibrary( LIB_CGAME ); - Mem_FreePool( &cl_gamemodulepool ); cge = NULL; } Modified: trunk/qfusion/source/client/cl_ui.c =================================================================== --- trunk/qfusion/source/client/cl_ui.c 2007-12-06 00:39:12 UTC (rev 798) +++ trunk/qfusion/source/client/cl_ui.c 2007-12-06 00:46:16 UTC (rev 799) @@ -191,8 +191,8 @@ cls.uiActive = qfalse; uie->Shutdown (); + Mem_FreePool( &ui_mempool ); Sys_UnloadGameLibrary( LIB_UI ); - Mem_FreePool( &ui_mempool ); uie = NULL; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |