diff engine/core/controller/engine.h @ 287:fdb1e98fd8b6

* Create an autorelease pool, so autoreleased SDL objects don't leak (Mac OS X specific issue) * Patch by nschum
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 21 Jun 2009 15:43:12 +0000
parents a9c4b895ed02
children 64738befdf3b
line wrap: on
line diff
--- a/engine/core/controller/engine.h	Sun Jun 21 15:09:54 2009 +0000
+++ b/engine/core/controller/engine.h	Sun Jun 21 15:43:12 2009 +0000
@@ -27,6 +27,11 @@
 #include <string>
 #include <vector>
 
+// Platform specific includes
+#ifdef USE_COCOA
+#include <objc/runtime.h>
+#endif
+
 // 3rd party library includes
 #include <SDL.h>
 
@@ -179,6 +184,11 @@
 		bool m_destroyed;
 		
 		EngineSettings m_settings;
+
+#ifdef USE_COCOA
+		objc_object *m_autoreleasePool;
+#endif
+
 	};
 
 }//FIFE