From a8820c14f2c43dd817347044764dda9335f4c3a0 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 30 Sep 2023 16:48:12 -0700 Subject: [PATCH] AssetManager: Match allocators (#1205) Currently on line 116 of AssetManager.cpp, we have the following `*data = (char*)malloc(*len);` however on line 45 of AssetManager.h we have `delete m_Base;` which is not the same allocator as we used to allocate the memory. This PR matches the malloc and free to be the correct calls. --- dCommon/dClient/AssetManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dCommon/dClient/AssetManager.h b/dCommon/dClient/AssetManager.h index bc7e5ff7..d2543489 100644 --- a/dCommon/dClient/AssetManager.h +++ b/dCommon/dClient/AssetManager.h @@ -42,7 +42,7 @@ struct AssetMemoryBuffer : std::streambuf { } void close() { - delete m_Base; + free(m_Base); } };