From 97b8068897b32387c942c5b2a10090bf00fa463c Mon Sep 17 00:00:00 2001 From: Mike Antipov Date: Fri, 11 Jun 2010 13:38:17 +0300 Subject: EXT-7699 FIXED Now Inventory Panel removes its onIdle method from the Idle Callback list while destroying. Reason: pointer to destroyed instance of LLInventoryPanel was used in an idle callback. Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/567/ --HG-- branch : product-engine --- indra/newview/llinventorypanel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview/llinventorypanel.cpp') diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index bb3f34dde2..b8144fc0e4 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -188,6 +188,8 @@ LLInventoryPanel::~LLInventoryPanel() } } + gIdleCallbacks.deleteFunction(onIdle, this); + // LLView destructor will take care of the sub-views. mInventory->removeObserver(mInventoryObserver); delete mInventoryObserver; -- cgit v1.2.3