ccservices/cmsservices/contactpresence/src/presenceiconinfo.cpp
branchRCL_3
changeset 39 a6539d1e8e43
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
--- a/ccservices/cmsservices/contactpresence/src/presenceiconinfo.cpp	Tue May 25 12:26:45 2010 +0300
+++ b/ccservices/cmsservices/contactpresence/src/presenceiconinfo.cpp	Wed Jun 09 09:26:27 2010 +0300
@@ -499,7 +499,11 @@
 #endif              
             TRAP_IGNORE( iObs.ReceiveIconInfosL( ContactLink(), iPendings, info->OpId() ));  
             // This instance is not needed anymore
-            Destroy();            
+            if (!destroyed)
+                {
+                Destroy();
+                }
+                        
             }         
         }
     else if ( iNotifyPending )
@@ -510,7 +514,10 @@
         // Empty notification
         TRAP_IGNORE( iObs.ReceiveIconInfosL( ContactLink(), iPendings, iOpId ));  
         // This instance is not needed anymore
-        Destroy();         
+        if (!destroyed)
+            {
+            Destroy();    
+            }
         }
     
     if ( !destroyed )