From ba0d4ccaf49753bd8c3eca127d41fa7072782473 Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Mon, 25 Oct 2010 21:38:22 +0300 Subject: STORM-341 FIXED Crash on exiting viewer while Outfit Editor is opened in detached Appearance SP. Reason: An inventory observer (LLFilteredWearableListManager) tried to use a deleted collect functor (LLFilterItem::collector in LLPanelOutfitEdit::mListViewItemTypes). Fix: De-register (and delete) the observer when the collector gets deleted. --- indra/newview/llpaneloutfitedit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llpaneloutfitedit.cpp b/indra/newview/llpaneloutfitedit.cpp index 5638374178..63076364bc 100644 --- a/indra/newview/llpaneloutfitedit.cpp +++ b/indra/newview/llpaneloutfitedit.cpp @@ -404,6 +404,7 @@ LLPanelOutfitEdit::LLPanelOutfitEdit() mAddWearablesPanel(NULL), mFolderViewFilterCmbBox(NULL), mListViewFilterCmbBox(NULL), + mWearableListManager(NULL), mPlusBtn(NULL), mWearablesGearMenuBtn(NULL), mGearMenuBtn(NULL) @@ -431,6 +432,7 @@ LLPanelOutfitEdit::LLPanelOutfitEdit() LLPanelOutfitEdit::~LLPanelOutfitEdit() { + delete mWearableListManager; delete mSavedFolderState; delete mCOFDragAndDropObserver; -- cgit v1.2.3