diff -r 6fbed849b4f4 -r 1f895d8a5b2b qtmobility/src/messaging/qfsengine_symbian.cpp --- a/qtmobility/src/messaging/qfsengine_symbian.cpp Wed Jun 23 19:08:38 2010 +0300 +++ b/qtmobility/src/messaging/qfsengine_symbian.cpp Tue Jul 06 15:12:50 2010 +0300 @@ -78,6 +78,8 @@ CFSEngine::CFSEngine() { + connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()), this, SLOT(cleanupFSBackend())); + TRAPD(err, { m_factory = CEmailInterfaceFactory::NewL(); m_ifPtr = m_factory->InterfaceL(KEmailClientApiInterface); @@ -93,6 +95,11 @@ CFSEngine::~CFSEngine() { + +} + +void CFSEngine::cleanupFSBackend() +{ m_mtmAccountList.clear(); for (TInt i = 0; i < m_attachments.Count(); i++){ m_attachments[i]->Release();