calendarui/controller/src/calennotifier.cpp
branchCompilerCompatibility
changeset 11 7d78dc22f397
parent 5 42814f902fe6
child 12 38571fd2a704
--- a/calendarui/controller/src/calennotifier.cpp	Mon Mar 08 21:43:23 2010 +0000
+++ b/calendarui/controller/src/calennotifier.cpp	Sun Mar 14 13:09:26 2010 +0000
@@ -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;