Index: core/src/fxge/ge/fx_ge_ps.cpp |
diff --git a/core/src/fxge/ge/fx_ge_ps.cpp b/core/src/fxge/ge/fx_ge_ps.cpp |
index 9da224602e7e39ca0e91036adc0adf16fcf1e77b..ad572115c56970cf279b88ea3e72438e2e947fb5 100644 |
--- a/core/src/fxge/ge/fx_ge_ps.cpp |
+++ b/core/src/fxge/ge/fx_ge_ps.cpp |
@@ -526,10 +526,7 @@ void CFX_PSRenderer::FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_Font* pFont, |
} |
} |
if (m_PSFontList.GetSize() == 0 || m_PSFontList[m_PSFontList.GetSize() - 1]->m_nGlyphs == 256) { |
- CPSFont* pPSFont = FX_NEW CPSFont; |
- if (!pPSFont) { |
- return; |
- } |
+ CPSFont* pPSFont = new CPSFont; |
pPSFont->m_nGlyphs = 0; |
m_PSFontList.Add(pPSFont); |
CFX_ByteTextBuf buf; |