diff -r 9c5b1510919f -r bf573002ff72 calendarui/globaldata/src/calenglobaldata.cpp --- a/calendarui/globaldata/src/calenglobaldata.cpp Wed Jun 09 09:40:23 2010 +0300 +++ b/calendarui/globaldata/src/calenglobaldata.cpp Mon Jun 21 15:38:59 2010 +0300 @@ -330,6 +330,11 @@ delete iCalSession; } + if (iCalendarInfoList.Count()) + { + iCalendarInfoList.ResetAndDestroy(); + } + if( iFileMappingArray.Count() ) { iFileMappingArray.ResetAndDestroy(); @@ -341,11 +346,6 @@ Dll::SetTls(NULL); - if (iCalendarInfoList.Count()) - { - iCalendarInfoList.ResetAndDestroy(); - } - if (iCalendarsSession) { delete iCalendarsSession;