diff options
| author | Rye Mutt <rye@alchemyviewer.org> | 2022-10-19 19:41:46 -0400 |
|---|---|---|
| committer | Rye Mutt <rye@alchemyviewer.org> | 2022-10-19 19:41:46 -0400 |
| commit | 22dc6de993cfc3de497edbce998a2bad719809d0 (patch) | |
| tree | cc1fee926d8ac53f25494bb69fe5ed2509c097c3 /indra/newview/llchathistory.cpp | |
| parent | f0cd5407c429f1033ede01e96a107daef70814fd (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.cpp | 5 |
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() |
