# HG changeset patch # User hgs # Date 1278080806 -19800 # Node ID ecd7b984028230291fb72b3e150026608b0ca2e3 # Parent b6db4fd4947bfefe0e89f867ebca2a06303a0932 201025_04 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;