summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRye <rye@lindenlab.com>2024-11-03 16:08:48 -0500
committerRye <rye@lindenlab.com>2024-11-04 04:15:06 -0500
commit2c7f57b3d6967c618d90d0cab97ec5dda221d3b0 (patch)
tree60e5217fcdcb7a0a20be8099a1676f3ddff02635
parent5ff70a9dbc5791975a333a973d734f998de7aa3b (diff)
Fix leak of LLUUID in ui preview floater
-rw-r--r--indra/newview/llfloateruipreview.cpp6
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: