Files
XCSDD/docs/api/memory/manager/shutdown.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

597 B

MemoryManager::Shutdown

void Shutdown();

关闭内存管理器。执行内存泄漏检测报告,释放系统分配器。应在程序退出前调用。

参数:

返回:

复杂度: O(n)

示例:

#include <XCEngine/Memory/MemoryManager.h>

int main() {
    MemoryManager::Get().Initialize();
    
    // ... 游戏主循环 ...
    
    // 程序退出前关闭
    MemoryManager::Get().DumpMemoryLeaks();
    MemoryManager::Get().Shutdown();
    
    return 0;
}

相关文档