summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorypanel.cpp
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@posteo.nl>2024-04-10 20:44:24 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-11 07:27:19 +0300
commit52f3f70ce887c0f8877de7a8439bf44a246e7f9a (patch)
tree0478fe5502e8f4da219d567c4ea7a6b83512a397 /indra/newview/llinventorypanel.cpp
parent72730609f371ae0417a2d117fdc9d805ce8858fb (diff)
Make sure items get removed from maps before the item itself gets destroyed,
Otherwise the viewer ends with a dangling pointer in the map
Diffstat (limited to 'indra/newview/llinventorypanel.cpp')
-rw-r--r--indra/newview/llinventorypanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp
index ab04a8589a..ae2236da3f 100644
--- a/indra/newview/llinventorypanel.cpp
+++ b/indra/newview/llinventorypanel.cpp
@@ -578,8 +578,8 @@ void LLInventoryPanel::itemChanged(const LLUUID& item_id, U32 mask, const LLInve
if (model_item && view_item && viewmodel_item)
{
const LLUUID& idp = viewmodel_item->getUUID();
+ removeItemID(idp);
view_item->destroyView();
- removeItemID(idp);
}
LLInventoryObject const* objectp = mInventory->getObject(item_id);