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]
/
copy.c
diff --git
a/copy.c
b/copy.c
index
42543d3
..
ccbf308
100644
(file)
--- a/
copy.c
+++ b/
copy.c
@@
-571,7
+571,7
@@
_mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body,
Context->vsize -= body->length - new_length;
body->length = new_length;
Context->vsize -= body->length - new_length;
body->length = new_length;
-
mutt_free_body
(&body->parts);
+
body_list_wipe
(&body->parts);
}
return 0;
}
return 0;
@@
-630,10
+630,10
@@
_mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body,
fseeko (fp, cur->offset, 0);
if (mutt_copy_bytes (fp, fpout, cur->length) == -1) {
fclose (fp);
fseeko (fp, cur->offset, 0);
if (mutt_copy_bytes (fp, fpout, cur->length) == -1) {
fclose (fp);
-
mutt_free_body
(&cur);
+
body_list_wipe
(&cur);
return (-1);
}
return (-1);
}
-
mutt_free_body
(&cur);
+
body_list_wipe
(&cur);
fclose (fp);
}
else {
fclose (fp);
}
else {
@@
-658,7
+658,7
@@
_mutt_copy_message (FILE * fpout, FILE * fpin, HEADER * hdr, BODY * body,
if ((flags & M_CM_UPDATE) && (flags & M_CM_NOHEADER) == 0
&& new_offset != -1) {
body->offset = new_offset;
if ((flags & M_CM_UPDATE) && (flags & M_CM_NOHEADER) == 0
&& new_offset != -1) {
body->offset = new_offset;
-
mutt_free_body
(&body->parts);
+
body_list_wipe
(&body->parts);
}
return rc;
}
return rc;