Skip to content
Snippets Groups Projects
Commit b47ad9ec authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix potential memory leak in LLFontFreetype::loadFont

parent b8fcda83
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,7 @@ const U8* LLFontManager::loadFont(const std::string& filename, long& out_size)
if (fread(in_buf, 1, out_size, filep) != out_size)
{
out_size = 0;
delete [] in_buf;
return nullptr;
}
filep.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment