Match C++ managed memory alloc with C# for scripting

This commit is contained in:
Wojtek Figat
2023-02-27 22:56:15 +01:00
parent 6f9f40192e
commit 499df770cc
4 changed files with 21 additions and 6 deletions

View File

@@ -1450,8 +1450,7 @@ MONO_API MONO_RT_EXTERNAL_ONLY MonoMethod* mono_class_get_method_from_name(MonoC
MONO_API void mono_free(void* ptr)
{
if (ptr != nullptr)
CoreCLR::Free(ptr);
CoreCLR::Free(ptr);
}
/*