From 5d3fcc765616bba7108731c131f690f7c46645f4 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sat, 30 Sep 2023 03:53:29 -0700 Subject: [PATCH] AssetManager: Match allocators 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 bc7e5ff76..d25434892 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); } };