javauis/lcdui_akn/lcdui/src/CMIDForm.cpp
branchRCL_3
changeset 25 9ac0a0a7da70
parent 24 0fd27995241b
child 59 e5618cc85d74
--- a/javauis/lcdui_akn/lcdui/src/CMIDForm.cpp	Tue May 11 16:07:20 2010 +0300
+++ b/javauis/lcdui_akn/lcdui/src/CMIDForm.cpp	Tue May 25 12:34:19 2010 +0300
@@ -3647,6 +3647,14 @@
 // modifies: CMIDForm, CMIDFormRow
 void CMIDForm::DeleteRows()
 {
+    // By deleting rows we are losing pointers to original items.
+    // To avoid any problems with using iPointedControl, which
+    // could points to invalid object (e.g. used in
+    // CMIDForm::HandleHighlightTimer or
+    // in CMIDForm::HandlePhysicsPointerEventL),
+    // iPointedControl must be set to NULL.
+    iPointedControl = NULL;
+
     for (TInt i=0; i < iRows.Count(); i++)
     {
         delete iRows[i];