2008-02-15 [colin] 3.3.0cvs13
[claws.git] / src / compose.c
index 378d4e8195d412e13a3ff2f2e412c8d0237e809a..7bdfa49e43f7db6de303fd011e89f3037870663d 100644 (file)
@@ -1499,7 +1499,11 @@ static Compose *compose_generic_reply(MsgInfo *msginfo,
                g_free(folderidentifier);
        }
 
-       if (compose_parse_header(compose, msginfo) < 0) return NULL;
+       if (compose_parse_header(compose, msginfo) < 0) {
+               compose->updating = FALSE;
+               compose_destroy(compose);
+               return NULL;
+       }
 
        textview = (GTK_TEXT_VIEW(compose->text));
        textbuf = gtk_text_view_get_buffer(textview);