diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2011-05-25 08:12:27 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2011-05-25 08:12:27 +0300 |
| commit | f22b50660751fbf4cf9fc22384fdbef6323205cc (patch) | |
| tree | 6ce5dc9a410b5dff898b264ba91fcdfbee0e4641 /src | |
| parent | 3c20cfc4deb855caeef7efff53411fbb99217f5e (diff) | |
* test-mu-cmd.c, test-mu-contacts.c: fix tiny leaks in test cases
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/test-mu-cmd.c | 4 | ||||
| -rw-r--r-- | src/tests/test-mu-contacts.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/test-mu-cmd.c b/src/tests/test-mu-cmd.c index 1c2172c..c2a009d 100644 --- a/src/tests/test-mu-cmd.c +++ b/src/tests/test-mu-cmd.c @@ -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); diff --git a/src/tests/test-mu-contacts.c b/src/tests/test-mu-contacts.c index 990d57f..695feb2 100644 --- a/src/tests/test-mu-contacts.c +++ b/src/tests/test-mu-contacts.c @@ -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); |
