diff options
author | Rye <rye@lindenlab.com> | 2024-11-04 12:28:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 12:28:42 -0500 |
commit | 9b124b7260af3a15ab410eec796043747d9bf2ff (patch) | |
tree | caa1565508057626d8f9a268d429731ebd37b72b /indra/newview/llfloateruipreview.cpp | |
parent | a895f4e02052729092359ee31a40ee0e4e3ed961 (diff) | |
parent | 2c7f57b3d6967c618d90d0cab97ec5dda221d3b0 (diff) |
Merge pull request #3007 from secondlife/rye/crashfixes
Fixes various small memory leaks and some crashes
Diffstat (limited to 'indra/newview/llfloateruipreview.cpp')
-rw-r--r-- | indra/newview/llfloateruipreview.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/indra/newview/llfloateruipreview.cpp b/indra/newview/llfloateruipreview.cpp index 12576c042b..797d146d97 100644 --- a/indra/newview/llfloateruipreview.cpp +++ b/indra/newview/llfloateruipreview.cpp @@ -701,13 +701,9 @@ void LLFloaterUIPreview::refreshList() // Note: no deduplification (shouldn't be necessary) void LLFloaterUIPreview::addFloaterEntry(const std::string& path) { - LLUUID* entry_id = new LLUUID(); // create a new UUID - entry_id->generate(path); - const LLUUID& entry_id_ref = *entry_id; // get a reference to the UUID for the LLSD block - // fill LLSD column entry: initialize row/col structure LLSD row; - row["id"] = entry_id_ref; + row["id"] = LLUUID::generateNewID(path); // create a new UUID; LLSD& columns = row["columns"]; // Get name of floater: |