diff options
author | Aimee Linden <aimee@lindenlab.com> | 2010-03-12 11:59:43 +0000 |
---|---|---|
committer | Aimee Linden <aimee@lindenlab.com> | 2010-03-12 11:59:43 +0000 |
commit | 8f548880714b84d5fc557fd2c1e1344c55dcfb54 (patch) | |
tree | dff099cc4fcfd30f9ab25c168661cb6a2d601f1f /indra/llrender/llfontregistry.cpp | |
parent | 1aba72c75bb1982a7fd4293fbc5ab3a42a3b0a92 (diff) |
Fix for EXT-6336 Minor memory leak in LLFontRegistry::createFont
Reviewed by: Tofu
Diffstat (limited to 'indra/llrender/llfontregistry.cpp')
-rw-r--r-- | indra/llrender/llfontregistry.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llfontregistry.cpp b/indra/llrender/llfontregistry.cpp index 7a3d6ec4f2..e619f89e1d 100644 --- a/indra/llrender/llfontregistry.cpp +++ b/indra/llrender/llfontregistry.cpp @@ -469,6 +469,8 @@ LLFontGL *LLFontRegistry::createFont(const LLFontDescriptor& desc) else { fontlist.push_back(fontp->mFontFreetype); + delete fontp; + fontp = NULL; } } } |