Skip to content
Snippets Groups Projects
Commit 8f548880 authored by Aimee Linden's avatar Aimee Linden
Browse files

Fix for EXT-6336 Minor memory leak in LLFontRegistry::createFont

Reviewed by: Tofu
parent 1aba72c7
No related branches found
No related tags found
No related merge requests found
...@@ -469,6 +469,8 @@ LLFontGL *LLFontRegistry::createFont(const LLFontDescriptor& desc) ...@@ -469,6 +469,8 @@ LLFontGL *LLFontRegistry::createFont(const LLFontDescriptor& desc)
else else
{ {
fontlist.push_back(fontp->mFontFreetype); fontlist.push_back(fontp->mFontFreetype);
delete fontp;
fontp = NULL;
} }
} }
} }
......
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