Update of /cvsroot/mahogany/M/include
In directory usw-pr-cvs1:/tmp/cvs-serv23943/include

Modified Files:
        MessageEditor.h 
Log Message:
fixed nasty memory corruption bug/crash which happened for the messages with 
attachments

Index: MessageEditor.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageEditor.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -u -2 -r1.2 -r1.3
--- MessageEditor.h     16 Mar 2002 23:38:47 -0000      1.2
+++ MessageEditor.h     5 Apr 2002 15:12:45 -0000       1.3
@@ -192,5 +192,5 @@
 // ----------------------------------------------------------------------------
 
-class EditorContentPart
+class EditorContentPart : public MObjectRC
 {
 public:
@@ -215,7 +215,4 @@
    EditorContentPart(const String& text) { Init(); SetText(text); }
 
-   /// dtor non virtual, this class shouldn't be used polymorphically
-   ~EditorContentPart();
-
    //@}
 
@@ -294,4 +291,7 @@
    void Init();
 
+   // private dtor, we're ref counted
+   virtual ~EditorContentPart();
+
    EditorContentType m_Type;
 
@@ -302,4 +302,6 @@
 
    MimeType m_MimeType;
+
+   GCC_DTOR_WARN_OFF
 };
 


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to