summaryrefslogtreecommitdiff
path: root/indra/llrender/llfontregistry.cpp
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-03-12 11:59:43 +0000
committerAimee Linden <aimee@lindenlab.com>2010-03-12 11:59:43 +0000
commit8f548880714b84d5fc557fd2c1e1344c55dcfb54 (patch)
treedff099cc4fcfd30f9ab25c168661cb6a2d601f1f /indra/llrender/llfontregistry.cpp
parent1aba72c75bb1982a7fd4293fbc5ab3a42a3b0a92 (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.cpp2
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;
}
}
}