[ue4] Fixes FMemory::Free crash. Still unsure why this is happening. Possibly cross-DLL allocation/free.

This commit is contained in:
badlogic 2018-04-17 11:50:51 +02:00
parent 207d51ae93
commit acca89688d

View File

@ -53,7 +53,8 @@ static void * SpineRealloc( void* ptr, size_t size ) {
}
void FSpinePlugin::StartupModule() {
#if !UE_EDITOR
// Needed for consoles, see https://github.com/EsotericSoftware/spine-runtimes/pull/1089
#if !UE_EDITOR && !PLATFORM_WINDOWS && !PLATFORM_MAC && !PLATFORM_LINUX && !PLATFORM_IOS && !PLATFORM_ANDROID && !PLATFORM_HTML5
_spSetMalloc( &SpineMalloc );
_spSetRealloc( &SpineRealloc );
_spSetFree( FMemory::Free );