Skip to content

Commit 2c7f57b

Browse files
author
Rye
committed
Fix leak of LLUUID in ui preview floater
1 parent 5ff70a9 commit 2c7f57b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

indra/newview/llfloateruipreview.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,13 +701,9 @@ void LLFloaterUIPreview::refreshList()
701701
// Note: no deduplification (shouldn't be necessary)
702702
void LLFloaterUIPreview::addFloaterEntry(const std::string& path)
703703
{
704-
LLUUID* entry_id = new LLUUID(); // create a new UUID
705-
entry_id->generate(path);
706-
const LLUUID& entry_id_ref = *entry_id; // get a reference to the UUID for the LLSD block
707-
708704
// fill LLSD column entry: initialize row/col structure
709705
LLSD row;
710-
row["id"] = entry_id_ref;
706+
row["id"] = LLUUID::generateNewID(path); // create a new UUID;
711707
LLSD& columns = row["columns"];
712708

713709
// Get name of floater:

0 commit comments

Comments
 (0)