diff -r bf7eb7911fc5 -r 997a02608b3a emailuis/nmailui/src/nmeditortextdocument.cpp --- a/emailuis/nmailui/src/nmeditortextdocument.cpp Wed Jun 23 18:00:21 2010 +0300 +++ b/emailuis/nmailui/src/nmeditortextdocument.cpp Tue Jul 06 14:04:34 2010 +0300 @@ -67,8 +67,10 @@ emit documentLayoutChanged(); } } - mReplyList.removeAll(reply); - reply->deleteLater(); + // If this has created the request, then this needs to handle deletion also. + if (mReplyList.removeAll(reply)) { + reply->deleteLater(); + } } }