mirror of https://github.com/axmolengine/axmol.git
fix memory leak in FontFreeType::create (#18503)
This commit is contained in:
parent
5f8fde8669
commit
966483be30
|
@ -63,6 +63,7 @@ FontFreeType * FontFreeType::create(const std::string &fontName, float fontSize,
|
|||
delete tempFont;
|
||||
return nullptr;
|
||||
}
|
||||
tempFont->autorelease();
|
||||
return tempFont;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue