diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-06-11 13:38:17 +0300 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-06-11 13:38:17 +0300 |
commit | 97b8068897b32387c942c5b2a10090bf00fa463c (patch) | |
tree | 543ac8b04186e38693e9f6efe05257ed4dee7e0b /indra/newview | |
parent | 53fcb0927539c224a9c078605f9a1164acbb5f53 (diff) |
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
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llinventorypanel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |