* test-mu-cmd.c, test-mu-contacts.c: fix tiny leaks in test cases
This commit is contained in:
@ -379,7 +379,8 @@ test_mu_extract_by_name (void)
|
|||||||
g_assert (g_mkdir_with_parents (tmpdir, 0700) == 0);
|
g_assert (g_mkdir_with_parents (tmpdir, 0700) == 0);
|
||||||
|
|
||||||
cmdline = g_strdup_printf ("%s extract --muhome=%s "
|
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_PROGRAM, tmpdir, tmpdir,
|
||||||
MU_TESTMAILDIR2, G_DIR_SEPARATOR,
|
MU_TESTMAILDIR2, G_DIR_SEPARATOR,
|
||||||
G_DIR_SEPARATOR, 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,
|
path = g_strdup_printf ("%s%c%s", tmpdir, G_DIR_SEPARATOR,
|
||||||
"sittingbull.jpg");
|
"sittingbull.jpg");
|
||||||
g_assert (access (path, F_OK) == 0);
|
g_assert (access (path, F_OK) == 0);
|
||||||
|
g_free (path);
|
||||||
|
|
||||||
g_free (erroutput);
|
g_free (erroutput);
|
||||||
g_free (output);
|
g_free (output);
|
||||||
|
|||||||
@ -159,6 +159,8 @@ test_mu_contacts_01 (void)
|
|||||||
|
|
||||||
g_slist_foreach (clist, (GFunc)contact_destroy, NULL);
|
g_slist_foreach (clist, (GFunc)contact_destroy, NULL);
|
||||||
g_slist_free (clist);
|
g_slist_free (clist);
|
||||||
|
|
||||||
|
mu_contacts_destroy (contacts);
|
||||||
|
|
||||||
g_free (contactsfile);
|
g_free (contactsfile);
|
||||||
g_free (muhome);
|
g_free (muhome);
|
||||||
|
|||||||
Reference in New Issue
Block a user