ctors/dtors for BODY's
[apps/madmutt.git] / mbox.c
diff --git a/mbox.c b/mbox.c
index 618fbdf..8b5b577 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -657,7 +657,7 @@ static int _mbox_sync_mailbox (CONTEXT * ctx, int unused __attribute__ ((unused)
        */
       newOffset[i - first].body =
         ftello (fp) - ctx->hdrs[i]->content->length + offset;
-      mutt_free_body (&ctx->hdrs[i]->content->parts);
+      body_list_wipe(&ctx->hdrs[i]->content->parts);
 
       switch (ctx->magic) {
       case M_MMDF: