* test-mu-cmd.c, test-mu-contacts.c: fix tiny leaks in test cases

This commit is contained in:
Dirk-Jan C. Binnema 2011-05-25 08:12:27 +03:00
parent 3c20cfc4de
commit f22b506607
2 changed files with 5 additions and 1 deletions

View File

@ -379,7 +379,8 @@ test_mu_extract_by_name (void)
g_assert (g_mkdir_with_parents (tmpdir, 0700) == 0);
cmdline = g_strdup_printf ("%s extract --muhome=%s "
"--target-dir=%s %s%cFoo%ccur%cmail5 sittingbull.jpg",
"--target-dir=%s %s%cFoo%ccur%cmail5 "
"sittingbull.jpg",
MU_PROGRAM, tmpdir, tmpdir,
MU_TESTMAILDIR2, G_DIR_SEPARATOR,
G_DIR_SEPARATOR, G_DIR_SEPARATOR);
@ -390,6 +391,7 @@ test_mu_extract_by_name (void)
path = g_strdup_printf ("%s%c%s", tmpdir, G_DIR_SEPARATOR,
"sittingbull.jpg");
g_assert (access (path, F_OK) == 0);
g_free (path);
g_free (erroutput);
g_free (output);

View File

@ -159,6 +159,8 @@ test_mu_contacts_01 (void)
g_slist_foreach (clist, (GFunc)contact_destroy, NULL);
g_slist_free (clist);
mu_contacts_destroy (contacts);
g_free (contactsfile);
g_free (muhome);