idlehomescreen/widgetmanager/src/wmlistbox.cpp
changeset 5 c743ef5928ba
parent 4 4d54b72983ae
child 9 f966699dea19
--- a/idlehomescreen/widgetmanager/src/wmlistbox.cpp	Tue Jan 26 11:48:23 2010 +0200
+++ b/idlehomescreen/widgetmanager/src/wmlistbox.cpp	Tue Feb 02 00:04:13 2010 +0200
@@ -444,7 +444,6 @@
 CWmListBox::~CWmListBox()
     {
     iWidgetDatas.ResetAndDestroy();
-    iTrashedData.ResetAndDestroy();
     }
 
 // ---------------------------------------------------------
@@ -517,19 +516,9 @@
         AknListBoxUtils::HandleItemRemovalAndPositionHighlightL(
             this, realIndex, current ) );
     
-    // widgetlist changed notification comes too early before even
-    // uninstall is completed. in wk04_2010 there is going to be fix 
-    // available for this issue. add data object to trashed array so
-    // that its not visible in list and is destroyed later.
-    if ( data->IsUninstalling() && data->IsActive() )
-        {
-        iTrashedData.Append( data );
-        }
-    else
-        {
-        // delete now
-        delete data;
-        }
+    // delete now
+    delete data;
+    data = NULL;
     }
 
 // ---------------------------------------------------------