* make mu-cmd reference-counted (make mu_msg_destroy internal, use

mu_msg_unref instead)
This commit is contained in:
Dirk-Jan C. Binnema
2011-01-09 18:54:14 +02:00
parent f1cedf7341
commit e0b484e922
11 changed files with 182 additions and 146 deletions

View File

@ -166,7 +166,7 @@ save_parts (const char *path, MuConfig *opts)
else
g_assert_not_reached ();
mu_msg_destroy (msg);
mu_msg_unref (msg);
return rv;
}
@ -200,7 +200,7 @@ show_parts (const char* path, MuConfig *opts)
g_print ("MIME-parts in this message:\n");
mu_msg_msg_part_foreach (msg, each_part_show, NULL);
mu_msg_destroy (msg);
mu_msg_unref (msg);
return TRUE;
@ -317,7 +317,7 @@ mu_cmd_view (MuConfig *opts)
if (!view_msg (msg, NULL, opts->summary_len))
rv = MU_EXITCODE_ERROR;
mu_msg_destroy (msg);
mu_msg_unref (msg);
}
return rv;
}