From cb89ae4a90c6ccaf228deb8f3fb9e2a0eb49a884 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Fri, 6 Sep 2019 17:25:48 +0800 Subject: [PATCH] Fix memory leak in iOS --- src/bgfx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index e546e0c28..83df360df 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -12,7 +12,7 @@ #include "topology.h" -#if BX_PLATFORM_OSX +#if BX_PLATFORM_OSX || BX_PLATFORM_IOS # include #endif // BX_PLATFORM_OSX @@ -2256,7 +2256,7 @@ namespace bgfx } } -#if BX_PLATFORM_OSX +#if BX_PLATFORM_OSX || BX_PLATFORM_IOS struct NSAutoreleasePoolScope { NSAutoreleasePoolScope() @@ -2280,7 +2280,7 @@ namespace bgfx { BGFX_PROFILER_SCOPE("bgfx::renderFrame", 0xff2040ff); -#if BX_PLATFORM_OSX +#if BX_PLATFORM_OSX || BX_PLATFORM_IOS NSAutoreleasePoolScope pool; #endif // BX_PLATFORM_OSX