summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorSergei Litovchuk <slitovchuk@productengine.com>2010-05-21 17:28:29 +0300
committerSergei Litovchuk <slitovchuk@productengine.com>2010-05-21 17:28:29 +0300
commit336934c490118ce2ad89c446de0c8559e334bff6 (patch)
treea169d149b25c1d47dbbf50240437a80f4ed85a43 /indra
parentbcdb1536c1248f41feb51542e523ca7c763542ef (diff)
Fixed potential crash in LLInventoryItemsList - unsubscribed from callback in destructor.
Reviewed by Mike Antipov. --HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventoryitemslist.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llinventoryitemslist.cpp b/indra/newview/llinventoryitemslist.cpp
index f94515d242..1c3eb547bb 100644
--- a/indra/newview/llinventoryitemslist.cpp
+++ b/indra/newview/llinventoryitemslist.cpp
@@ -336,7 +336,9 @@ LLInventoryItemsList::LLInventoryItemsList(const LLInventoryItemsList::Params& p
// virtual
LLInventoryItemsList::~LLInventoryItemsList()
-{}
+{
+ gIdleCallbacks.deleteFunction(idle, this);
+}
void LLInventoryItemsList::refreshList(const LLInventoryModel::item_array_t item_array)
{