diff -r b1f0785c289d -r 4f501b74aeb1 messagingapp/msgui/unifiededitor/src/msgunieditorattachment.cpp --- a/messagingapp/msgui/unifiededitor/src/msgunieditorattachment.cpp Tue Jul 13 22:09:22 2010 +0530 +++ b/messagingapp/msgui/unifiededitor/src/msgunieditorattachment.cpp Sun Jul 25 18:59:19 2010 +0530 @@ -78,7 +78,10 @@ int at_size = 0; TMsgMediaType mediaType = EMsgMediaUnknown; - UniEditorGenUtils* genUtils = new UniEditorGenUtils; + + UniEditorGenUtils* genUtils = NULL; + QT_TRAP_THROWING(genUtils = new UniEditorGenUtils); + TRAP_IGNORE(genUtils->getFileInfoL(mPath,at_size, mMimeType,mediaType)); TRAP_IGNORE(mMaxSmsSize = genUtils->MaxSmsMsgSizeL());