Kaydet (Commit) 7db11e4a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1250699 Dereference null return value

Change-Id: Iaddc47087d796d96fa0ed054c254b3cf83c90b5e
üst 4088fff7
......@@ -1987,6 +1987,11 @@ bool PrintFontManager::createFontSubset(
#endif
// create subset file at requested path
FILE* pOutFile = fopen( aToFile.getStr(), "wb" );
if (!pOutFile)
{
CloseTTFont( pTTFont );
return false;
}
// create font subset
const char* pGlyphSetName = NULL; // TODO: better name?
const bool bOK = rInfo.CreateFontSubset(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment