projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctors/dtors for BODY's
[apps/madmutt.git]
/
compose.c
diff --git
a/compose.c
b/compose.c
index
ca5704b
..
de3e38b
100644
(file)
--- 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;
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++)
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;
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]);
}
p_delete(&idx[idxlen]->tree);
p_delete(&idx[idxlen]);
}