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)
}
free (buf);
mu_stream_destroy (&output);
if (msg)
{
mu_stream_close (output);
if (line_count)
finish_text_msg (env, &msg, ascii_buf);
else
mu_message_unref (msg);
}
mu_stream_destroy (&output);
return status;
}
......