diff -r b6db4fd4947b -r ecd7b9840282 calendarui/controller/src/calencontroller.cpp --- a/calendarui/controller/src/calencontroller.cpp Mon Jun 28 15:22:02 2010 +0530 +++ b/calendarui/controller/src/calencontroller.cpp Fri Jul 02 19:56:46 2010 +0530 @@ -65,6 +65,7 @@ iNextServicesCommandBase = KCustomCommandRangeStart; iRefCount = 0; + mAgendaUtil = 0; TRACE_EXIT_POINT; } @@ -290,6 +291,12 @@ delete iCustomisationManager; iCustomisationManager = NULL; } + + if (mAgendaUtil) { + delete mAgendaUtil; + mAgendaUtil = 0; + } + Dll::SetTls( NULL ); TRACE_EXIT_POINT;