From 8f548880714b84d5fc557fd2c1e1344c55dcfb54 Mon Sep 17 00:00:00 2001 From: Aimee Linden Date: Fri, 12 Mar 2010 11:59:43 +0000 Subject: Fix for EXT-6336 Minor memory leak in LLFontRegistry::createFont Reviewed by: Tofu --- indra/llrender/llfontregistry.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra') 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; } } } -- cgit v1.2.3