| Index: core/src/fxge/ge/fx_ge.cpp
|
| diff --git a/core/src/fxge/ge/fx_ge.cpp b/core/src/fxge/ge/fx_ge.cpp
|
| index 5198a042e8fddb09b59e4de93c07966319f6429d..4b34a079e5ecd4270221435532dfb797b174e2e8 100644
|
| --- a/core/src/fxge/ge/fx_ge.cpp
|
| +++ b/core/src/fxge/ge/fx_ge.cpp
|
| @@ -17,13 +17,9 @@ CFX_GEModule::CFX_GEModule()
|
| }
|
| CFX_GEModule::~CFX_GEModule()
|
| {
|
| - if (m_pFontCache) {
|
| - delete m_pFontCache;
|
| - }
|
| + delete m_pFontCache;
|
| m_pFontCache = NULL;
|
| - if (m_pFontMgr) {
|
| - delete m_pFontMgr;
|
| - }
|
| + delete m_pFontMgr;
|
| m_pFontMgr = NULL;
|
| DestroyPlatform();
|
| }
|
| @@ -44,9 +40,7 @@ void CFX_GEModule::Use(CFX_GEModule* pModule)
|
| }
|
| void CFX_GEModule::Destroy()
|
| {
|
| - if (g_pGEModule) {
|
| - delete g_pGEModule;
|
| - }
|
| + delete g_pGEModule;
|
| g_pGEModule = NULL;
|
| }
|
| CFX_FontCache* CFX_GEModule::GetFontCache()
|
|
|