emailuis/nmailui/src/nmeditortextdocument.cpp
changeset 54 997a02608b3a
parent 30 759dc5235cdb
--- 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();
+        }
     }
 }