From d5b72eb78d8958f4cba96dd6cff397063918277b Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 7 Mar 2025 22:37:14 +0200 Subject: #3697 Crash on LLAvatarPropertiesProcessor::notifyObservers --- indra/newview/llpanelprofileclassifieds.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/newview/llpanelprofileclassifieds.cpp') diff --git a/indra/newview/llpanelprofileclassifieds.cpp b/indra/newview/llpanelprofileclassifieds.cpp index 62829b0745..3920dd82c8 100644 --- a/indra/newview/llpanelprofileclassifieds.cpp +++ b/indra/newview/llpanelprofileclassifieds.cpp @@ -78,6 +78,13 @@ class LLClassifiedHandler : public LLCommandHandler, public LLAvatarPropertiesOb public: // throttle calls from untrusted browsers LLClassifiedHandler() : LLCommandHandler("classified", UNTRUSTED_THROTTLE) {} + virtual ~LLClassifiedHandler() + { + if (LLAvatarPropertiesProcessor::instanceExists()) + { + LLAvatarPropertiesProcessor::getInstance()->removeObserver(LLUUID(), this); + } + } std::set mClassifiedIds; std::string mRequestVerb; -- cgit v1.2.3