From fdee507957a0c55a6c7adbd81606e522ac4d7027 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Tue, 1 Mar 2022 21:40:12 +0100 Subject: [PATCH] Remove memoryfix flag from exception component --- src/client/component/exception.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/client/component/exception.cpp b/src/client/component/exception.cpp index 61210ad7..88ae0101 100644 --- a/src/client/component/exception.cpp +++ b/src/client/component/exception.cpp @@ -255,17 +255,6 @@ namespace exception { dvars::cg_legacyCrashHandling = dvars::register_bool("cg_legacyCrashHandling", false, game::DVAR_FLAG_SAVED, true); - - // Could cause memory leaks but fixes possible out of memory (12) errors - const auto has_flag = utils::flags::has_flag("memoryfix"); - if (has_flag) - { - utils::hook::jump(0x140578BE0, malloc); - utils::hook::jump(0x140578B00, _aligned_malloc); - utils::hook::jump(0x140578C40, free); - utils::hook::jump(0x140578D30, realloc); - utils::hook::jump(0x140578B60, _aligned_realloc); - } } }; }