Commit 18c565be 18c565be94550abfcb86787ce0dda698dd54a223 by Sergey Poznyakoff

Bugfix.

* mh/mhn.c (mhn_edit): Destroy output prior to
unreferencing msg, because it may have been taken
from it.
1 parent a940c38c
Showing 1 changed file with 1 additions and 2 deletions
...@@ -2711,15 +2711,14 @@ mhn_edit (struct compose_env *env, int level) ...@@ -2711,15 +2711,14 @@ mhn_edit (struct compose_env *env, int level)
2711 } 2711 }
2712 free (buf); 2712 free (buf);
2713 2713
2714 mu_stream_destroy (&output);
2714 if (msg) 2715 if (msg)
2715 { 2716 {
2716 mu_stream_close (output);
2717 if (line_count) 2717 if (line_count)
2718 finish_text_msg (env, &msg, ascii_buf); 2718 finish_text_msg (env, &msg, ascii_buf);
2719 else 2719 else
2720 mu_message_unref (msg); 2720 mu_message_unref (msg);
2721 } 2721 }
2722 mu_stream_destroy (&output);
2723 2722
2724 return status; 2723 return status;
2725 } 2724 }
......