From 8f548880714b84d5fc557fd2c1e1344c55dcfb54 Mon Sep 17 00:00:00 2001
From: Aimee Linden <aimee@lindenlab.com>
Date: Fri, 12 Mar 2010 11:59:43 +0000
Subject: [PATCH] Fix for EXT-6336 Minor memory leak in
 LLFontRegistry::createFont

Reviewed by: Tofu
---
 indra/llrender/llfontregistry.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/indra/llrender/llfontregistry.cpp b/indra/llrender/llfontregistry.cpp
index 7a3d6ec4f2d..e619f89e1d6 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;
 			}
 		}
 	}
-- 
GitLab