mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 05:09:07 +08:00
[ue4] Fixes FMemory::Free crash. Still unsure why this is happening. Possibly cross-DLL allocation/free.
This commit is contained in:
parent
207d51ae93
commit
acca89688d
@ -53,7 +53,8 @@ static void * SpineRealloc( void* ptr, size_t size ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FSpinePlugin::StartupModule() {
|
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 );
|
_spSetMalloc( &SpineMalloc );
|
||||||
_spSetRealloc( &SpineRealloc );
|
_spSetRealloc( &SpineRealloc );
|
||||||
_spSetFree( FMemory::Free );
|
_spSetFree( FMemory::Free );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user