Example #1
0
void	xrMemory::_destroy()
{
#ifdef DEBUG_MEMORY_MANAGER
	mem_alloc_gather_stats		(false);
	mem_alloc_show_stats		();
	mem_alloc_clear_stats		();
#endif // DEBUG

#ifdef DEBUG_MEMORY_MANAGER
	if (debug_mode)				dbg_dump_str_leaks	();
#endif // DEBUG_MEMORY_MANAGER

	xr_delete					(g_pSharedMemoryContainer);
	xr_delete					(g_pStringContainer);

#ifndef M_BORLAND
#	ifdef DEBUG_MEMORY_MANAGER
		if (debug_mode)				dbg_dump_leaks	();
#	endif // DEBUG_MEMORY_MANAGER
#endif // M_BORLAND

	mem_initialized				= FALSE;
#ifdef DEBUG_MEMORY_MANAGER
	debug_mode					= FALSE;
#endif // DEBUG_MEMORY_MANAGER
}
Example #2
0
	virtual void Execute(LPCSTR) {
		mem_alloc_clear_stats	();
	}