stif/TestServer/src/Testserversession.cpp
branchRCL_3
changeset 12 7e287c5c61f0
parent 9 8a14024f954a
child 14 381827f66490
--- a/stif/TestServer/src/Testserversession.cpp	Thu Apr 01 00:00:49 2010 +0300
+++ b/stif/TestServer/src/Testserversession.cpp	Wed Apr 14 17:35:04 2010 +0300
@@ -358,9 +358,8 @@
         {
         TInt handle = 0;
         CObject* theObj = NULL;
-        TInt count = iTestExecutionHandle->Count();
-            
-        for( TInt i = 0 ; i < count; i++ )
+        TInt count = iTestExecutionHandle->Count();        
+        for ( TInt i = count - 1; i >= 0; i-- )
             {
             theObj=iTestExecutionHandle->operator[]( i );
             if( theObj )
@@ -374,7 +373,6 @@
 
         delete iTestExecutionHandle;
         iTestExecutionHandle = NULL;
-
         }
 
     // Deletion must be done here, because the "CloseSession" message is