Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
286:bbabe4942150 | 287:fdb1e98fd8b6 |
---|---|
24 | 24 |
25 // Standard C++ library includes | 25 // Standard C++ library includes |
26 #include <map> | 26 #include <map> |
27 #include <string> | 27 #include <string> |
28 #include <vector> | 28 #include <vector> |
29 | |
30 // Platform specific includes | |
31 #ifdef USE_COCOA | |
32 #include <objc/runtime.h> | |
33 #endif | |
29 | 34 |
30 // 3rd party library includes | 35 // 3rd party library includes |
31 #include <SDL.h> | 36 #include <SDL.h> |
32 | 37 |
33 // FIFE includes | 38 // FIFE includes |
177 GuiFont* m_defaultfont; | 182 GuiFont* m_defaultfont; |
178 Cursor* m_cursor; | 183 Cursor* m_cursor; |
179 bool m_destroyed; | 184 bool m_destroyed; |
180 | 185 |
181 EngineSettings m_settings; | 186 EngineSettings m_settings; |
187 | |
188 #ifdef USE_COCOA | |
189 objc_object *m_autoreleasePool; | |
190 #endif | |
191 | |
182 }; | 192 }; |
183 | 193 |
184 }//FIFE | 194 }//FIFE |
185 | 195 |
186 #endif | 196 #endif |