summaryrefslogtreecommitdiff
path: root/indra/newview/llchathistory.cpp
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2022-10-19 19:41:46 -0400
committerRye Mutt <rye@alchemyviewer.org>2022-10-19 19:41:46 -0400
commit22dc6de993cfc3de497edbce998a2bad719809d0 (patch)
treecc1fee926d8ac53f25494bb69fe5ed2509c097c3 /indra/newview/llchathistory.cpp
parentf0cd5407c429f1033ede01e96a107daef70814fd (diff)
Fix trivial memory leaks in note card processing, chat history, and task inventory
Diffstat (limited to 'indra/newview/llchathistory.cpp')
-rw-r--r--indra/newview/llchathistory.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index f4e1943ea2..42283f0238 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -1103,10 +1103,7 @@ LLChatHistory::LLChatHistory(const LLChatHistory::Params& p)
LLSD LLChatHistory::getValue() const
{
- LLSD* text=new LLSD();
- text->assign(mEditor->getText());
- return *text;
-
+ return LLSD(mEditor->getText());
}
LLChatHistory::~LLChatHistory()