| Index: core/src/fxge/ge/fx_ge_linux.cpp
|
| diff --git a/core/src/fxge/ge/fx_ge_linux.cpp b/core/src/fxge/ge/fx_ge_linux.cpp
|
| index ad0a70ab1ff91f12561ccd2b66a567f2ed12e924..b9cfc8ef5481bfb0bf800a0016fc2a721fe84447 100644
|
| --- a/core/src/fxge/ge/fx_ge_linux.cpp
|
| +++ b/core/src/fxge/ge/fx_ge_linux.cpp
|
| @@ -208,10 +208,7 @@ void* CFX_LinuxFontInfo::FindFont(int weight, FX_BOOL bItalic, int charset, int
|
| }
|
| IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault()
|
| {
|
| - CFX_LinuxFontInfo* pInfo = FX_NEW CFX_LinuxFontInfo;
|
| - if (!pInfo) {
|
| - return NULL;
|
| - }
|
| + CFX_LinuxFontInfo* pInfo = new CFX_LinuxFontInfo;
|
| if (!pInfo->ParseFontCfg()) {
|
| pInfo->AddPath("/usr/share/fonts");
|
| pInfo->AddPath("/usr/share/X11/fonts/Type1");
|
|
|