If the string came from the memory pool, don't really free it. The entire memory pool will be wiped during the next level load.
| 46 | //If the string came from the memory pool, don't really free it. The entire |
| 47 | //memory pool will be wiped during the next level load. |
| 48 | static void Cvar_FreeString(char *string) |
| 49 | { |
| 50 | if(!lastMemPool || string < lastMemPool || |
| 51 | string >= lastMemPool + memPoolSize) { |
| 52 | Z_Free(string); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /* |
| 57 | ================ |
no test coverage detected