X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compose.c;h=de3e38b960d886c077c9aef0465d197d237c44e2;hp=ca5704b7aecc6b0188f04d394be358e9751a482f;hb=0dbe922d4298aed78dcba64b7c770f315a64505e;hpb=69f4685e616347559d4ec714fd826d7f97a472ef;ds=sidebyside diff --git a/compose.c b/compose.c index ca5704b..de3e38b 100644 --- a/compose.c +++ b/compose.c @@ -366,7 +366,7 @@ static int delete_attachment (MUTTMENU * menu, short *idxlen, int x) idx[x]->content->next = NULL; idx[x]->content->parts = NULL; - mutt_free_body (&(idx[x]->content)); + body_list_wipe(&(idx[x]->content)); p_delete(&idx[x]->tree); p_delete(&idx[x]); for (; x < *idxlen - 1; x++) @@ -1260,7 +1260,7 @@ int mutt_compose_menu (HEADER * msg, /* structure for new message */ idx[idxlen]->content->parts = NULL; if (idx[idxlen]->unowned) idx[idxlen]->content->unlink = 0; - mutt_free_body (&idx[idxlen]->content); + body_list_wipe(&idx[idxlen]->content); p_delete(&idx[idxlen]->tree); p_delete(&idx[idxlen]); }