messagingapp/msgutils/unidatautils/unidatamodelplugins/unibiomessagedataplugin/src/unibiomessagedataplugin_p.cpp
equal
deleted
inserted
replaced
48 //--------------------------------------------------------------- |
48 //--------------------------------------------------------------- |
49 UniBioMessageDataPluginPrivate::~UniBioMessageDataPluginPrivate() |
49 UniBioMessageDataPluginPrivate::~UniBioMessageDataPluginPrivate() |
50 { |
50 { |
51 q_ptr = NULL; |
51 q_ptr = NULL; |
52 |
52 |
53 if(attachmentProcessed == EFalse && iAttachmentCount == 1) |
53 if(attachmentProcessed == EFalse && iAttachmentCount == 1 && iMsvEntry) |
54 { |
54 { |
55 TRAP_IGNORE( CMsvStore* store = iMsvEntry->EditStoreL(); |
55 TRAP_IGNORE( CMsvStore* store = iMsvEntry->EditStoreL(); |
56 CleanupStack::PushL(store); |
56 CleanupStack::PushL(store); |
57 MMsvAttachmentManagerSync& attachMan = store->AttachmentManagerExtensionsL(); |
57 MMsvAttachmentManagerSync& attachMan = store->AttachmentManagerExtensionsL(); |
58 attachMan.RemoveAttachmentL(0); |
58 attachMan.RemoveAttachmentL(0); |