--- deliantra/Deliantra-Client/Client.xs 2006/06/10 02:22:33 1.110 +++ deliantra/Deliantra-Client/Client.xs 2006/06/12 13:26:14 1.111 @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -705,7 +706,12 @@ #ifdef _WIN32 MessageBox (0, message, "Crossfire+ Fatal Error", MB_OK | MB_ICONERROR); #endif - exit (1); + _Exit (1); + +void +_exit (int retval) + CODE: + _Exit (retval); MODULE = CFClient PACKAGE = CFClient::Font @@ -1055,6 +1061,7 @@ { map_clear (self); Safefree (self->face); + Safefree (self->tex); Safefree (self); }