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.
This commit is contained in:
David Markowitz 2023-09-30 16:48:12 -07:00 committed by GitHub
parent 1ec8da8bf7
commit a8820c14f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ struct AssetMemoryBuffer : std::streambuf {
}
void close() {
delete m_Base;
free(m_Base);
}
};