summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-03 18:22:25 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-03 18:22:25 +0000
commit011673de5a73eefbd59e29056851e160338be714 (patch)
tree6863cd39ce4a0e3983d3da02614bdbd95b9f98d0 /indra
parent8b9492a68567fe5b7949f42330514730848331c7 (diff)
CID-419
Checker: RESOURCE_LEAK File: /indra/llui/llstyle.h --HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lltexteditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index e76fee9f17..a4c802bd26 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -2574,7 +2574,7 @@ void LLTextEditor::updateLinkSegments()
// then update the link's HREF to be the same as the label text.
// This lets users edit Urls in-place.
LLStyleConstSP style = segment->getStyle();
- LLStyle* new_style = new LLStyle(*style);
+ LLStyleSP new_style(new LLStyle(*style));
LLWString url_label = wtext.substr(segment->getStart(), segment->getEnd()-segment->getStart());
if (LLUrlRegistry::instance().hasUrl(url_label))
{