calendarui/controller/src/calennotifier.cpp
branchRCL_3
changeset 5 42814f902fe6
parent 0 f979ecb2b13e
child 10 38571fd2a704
--- a/calendarui/controller/src/calennotifier.cpp	Tue Feb 02 10:12:19 2010 +0200
+++ b/calendarui/controller/src/calennotifier.cpp	Fri Feb 19 22:49:53 2010 +0200
@@ -80,6 +80,8 @@
     // Release the global data
     if( iGlobalData )
         {
+        // stop listening for calendar file change notifications
+        iGlobalData->CalSessionL().StopFileChangeNotification();
         iGlobalData->Release();
         }
 
@@ -109,8 +111,7 @@
     iHandlers.Reset();
     iBroadcastQueue.Reset();
 
-	// stop listening for calendar file change notifications
-	iGlobalData->CalSessionL().StopFileChangeNotification();
+	
 	
 	iAsyncCallback->Cancel();
 	delete iAsyncCallback;