summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog12
-rw-r--r--ChangeLog.pre-2-1012
-rw-r--r--ChangeLog.pre-2-1212
-rw-r--r--tests/completion-test.c2
-rw-r--r--tests/convert-test.c2
-rw-r--r--tests/patterntest.c6
-rw-r--r--tests/shell-test.c1
-rw-r--r--tests/unicode-caseconv.c2
-rw-r--r--tests/uri-test.c1
9 files changed, 50 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4dd099da6..5a3dc7d47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-02-23 Kjartan Maraas <kmaraas@gnome.org>
+
+ * tests/completion-test.c: (main): Plug leaks reported by
+ valgrind.
+ * tests/convert-test.c: (test_iconv_state), (test_one_half):
+ Same.
+ * tests/patterntest.c: (test_compilation): Same
+ * tests/shell-test.c: (do_argv_test): Same.
+ * tests/unicode-caseconv.c: (main): Same.
+ * tests/uri-test.c: (run_to_uri_tests): Same.
+ Closes bug #332093.
+
2006-02-19 Martyn Russell <martyn@imendio.com>
* tests/asyncqueue-test.c:
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 4dd099da6..5a3dc7d47 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,15 @@
+2006-02-23 Kjartan Maraas <kmaraas@gnome.org>
+
+ * tests/completion-test.c: (main): Plug leaks reported by
+ valgrind.
+ * tests/convert-test.c: (test_iconv_state), (test_one_half):
+ Same.
+ * tests/patterntest.c: (test_compilation): Same
+ * tests/shell-test.c: (do_argv_test): Same.
+ * tests/unicode-caseconv.c: (main): Same.
+ * tests/uri-test.c: (run_to_uri_tests): Same.
+ Closes bug #332093.
+
2006-02-19 Martyn Russell <martyn@imendio.com>
* tests/asyncqueue-test.c:
diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index 4dd099da6..5a3dc7d47 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -1,3 +1,15 @@
+2006-02-23 Kjartan Maraas <kmaraas@gnome.org>
+
+ * tests/completion-test.c: (main): Plug leaks reported by
+ valgrind.
+ * tests/convert-test.c: (test_iconv_state), (test_one_half):
+ Same.
+ * tests/patterntest.c: (test_compilation): Same
+ * tests/shell-test.c: (do_argv_test): Same.
+ * tests/unicode-caseconv.c: (main): Same.
+ * tests/uri-test.c: (run_to_uri_tests): Same.
+ Closes bug #332093.
+
2006-02-19 Martyn Russell <martyn@imendio.com>
* tests/asyncqueue-test.c:
diff --git a/tests/completion-test.c b/tests/completion-test.c
index 50cfc95da..88d2986fe 100644
--- a/tests/completion-test.c
+++ b/tests/completion-test.c
@@ -58,5 +58,7 @@ int main (int argc, char *argv[])
g_assert (!strcmp ("b", prefix));
g_free (prefix);
+ g_completion_free (cmp);
+
return 0;
}
diff --git a/tests/convert-test.c b/tests/convert-test.c
index 87d57b2ce..a24a9e206 100644
--- a/tests/convert-test.c
+++ b/tests/convert-test.c
@@ -49,6 +49,7 @@ test_iconv_state (void)
g_assert (bytes_read == 5);
g_assert (bytes_written == 10);
g_assert (strcmp (out, expected) == 0);
+ g_free (out);
}
/* some tests involving "vulgar fraction one half" */
@@ -82,6 +83,7 @@ test_one_half (void)
g_assert (bytes_written == 0);
g_assert (out == NULL);
g_clear_error (&error);
+ g_free (out);
out = g_convert_with_fallback (in, -1,
"ISO8859-15", "UTF-8",
diff --git a/tests/patterntest.c b/tests/patterntest.c
index aceeb5d0a..494de1700 100644
--- a/tests/patterntest.c
+++ b/tests/patterntest.c
@@ -105,6 +105,7 @@ test_compilation (gchar *src,
g_print ("failed \t(match_type: %s, expected %s)\n",
match_type_name (spec->match_type),
match_type_name (match_type));
+ g_pattern_spec_free (spec);
return FALSE;
}
@@ -113,6 +114,7 @@ test_compilation (gchar *src,
g_print ("failed \t(pattern: \"%s\", expected \"%s\")\n",
spec->pattern,
pattern);
+ g_pattern_spec_free (spec);
return FALSE;
}
@@ -121,6 +123,7 @@ test_compilation (gchar *src,
g_print ("failed \t(pattern_length: %d, expected %d)\n",
spec->pattern_length,
(gint)strlen (spec->pattern));
+ g_pattern_spec_free (spec);
return FALSE;
}
@@ -129,12 +132,15 @@ test_compilation (gchar *src,
g_print ("failed \t(min_length: %d, expected %d)\n",
spec->min_length,
min);
+ g_pattern_spec_free (spec);
return FALSE;
}
verbose ("passed (%s: \"%s\")\n",
match_type_name (spec->match_type),
spec->pattern);
+
+ g_pattern_spec_free (spec);
return TRUE;
}
diff --git a/tests/shell-test.c b/tests/shell-test.c
index 3762cb4cb..437f20e51 100644
--- a/tests/shell-test.c
+++ b/tests/shell-test.c
@@ -161,6 +161,7 @@ do_argv_test (const gchar *cmdline, const TestResult *result)
fprintf (stderr, "argv didn't get NULL-terminated\n");
exit (1);
}
+ g_strfreev (argv);
}
static void
diff --git a/tests/unicode-caseconv.c b/tests/unicode-caseconv.c
index 8b949d45a..77d8a9b0f 100644
--- a/tests/unicode-caseconv.c
+++ b/tests/unicode-caseconv.c
@@ -88,6 +88,7 @@ int main (int argc, char **argv)
if (!infile)
{
fprintf (stderr, "Failed to open %s\n", filename );
+ g_free (filename);
exit (1);
}
@@ -114,6 +115,7 @@ int main (int argc, char **argv)
}
fclose (infile);
+ g_free (filename);
return result;
}
diff --git a/tests/uri-test.c b/tests/uri-test.c
index c0f21b051..340d774a2 100644
--- a/tests/uri-test.c
+++ b/tests/uri-test.c
@@ -221,6 +221,7 @@ run_to_uri_tests (void)
g_print ("Error message: %s\n", error->message);
any_failed = TRUE;
}
+ g_free (res);
}
}