mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 15:49:16 +02:00
Plug leaks reported by valgrind. Same. Same Same. Same. Same.
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.
This commit is contained in:
parent
27a4a3ab6f
commit
a629b3f02d
12
ChangeLog
12
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>
|
2006-02-19 Martyn Russell <martyn@imendio.com>
|
||||||
|
|
||||||
* tests/asyncqueue-test.c:
|
* tests/asyncqueue-test.c:
|
||||||
|
@ -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>
|
2006-02-19 Martyn Russell <martyn@imendio.com>
|
||||||
|
|
||||||
* tests/asyncqueue-test.c:
|
* tests/asyncqueue-test.c:
|
||||||
|
@ -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>
|
2006-02-19 Martyn Russell <martyn@imendio.com>
|
||||||
|
|
||||||
* tests/asyncqueue-test.c:
|
* tests/asyncqueue-test.c:
|
||||||
|
@ -58,5 +58,7 @@ int main (int argc, char *argv[])
|
|||||||
g_assert (!strcmp ("b", prefix));
|
g_assert (!strcmp ("b", prefix));
|
||||||
g_free (prefix);
|
g_free (prefix);
|
||||||
|
|
||||||
|
g_completion_free (cmp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ test_iconv_state (void)
|
|||||||
g_assert (bytes_read == 5);
|
g_assert (bytes_read == 5);
|
||||||
g_assert (bytes_written == 10);
|
g_assert (bytes_written == 10);
|
||||||
g_assert (strcmp (out, expected) == 0);
|
g_assert (strcmp (out, expected) == 0);
|
||||||
|
g_free (out);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* some tests involving "vulgar fraction one half" */
|
/* some tests involving "vulgar fraction one half" */
|
||||||
@ -82,6 +83,7 @@ test_one_half (void)
|
|||||||
g_assert (bytes_written == 0);
|
g_assert (bytes_written == 0);
|
||||||
g_assert (out == NULL);
|
g_assert (out == NULL);
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
|
g_free (out);
|
||||||
|
|
||||||
out = g_convert_with_fallback (in, -1,
|
out = g_convert_with_fallback (in, -1,
|
||||||
"ISO8859-15", "UTF-8",
|
"ISO8859-15", "UTF-8",
|
||||||
|
@ -105,6 +105,7 @@ test_compilation (gchar *src,
|
|||||||
g_print ("failed \t(match_type: %s, expected %s)\n",
|
g_print ("failed \t(match_type: %s, expected %s)\n",
|
||||||
match_type_name (spec->match_type),
|
match_type_name (spec->match_type),
|
||||||
match_type_name (match_type));
|
match_type_name (match_type));
|
||||||
|
g_pattern_spec_free (spec);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,6 +114,7 @@ test_compilation (gchar *src,
|
|||||||
g_print ("failed \t(pattern: \"%s\", expected \"%s\")\n",
|
g_print ("failed \t(pattern: \"%s\", expected \"%s\")\n",
|
||||||
spec->pattern,
|
spec->pattern,
|
||||||
pattern);
|
pattern);
|
||||||
|
g_pattern_spec_free (spec);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,6 +123,7 @@ test_compilation (gchar *src,
|
|||||||
g_print ("failed \t(pattern_length: %d, expected %d)\n",
|
g_print ("failed \t(pattern_length: %d, expected %d)\n",
|
||||||
spec->pattern_length,
|
spec->pattern_length,
|
||||||
(gint)strlen (spec->pattern));
|
(gint)strlen (spec->pattern));
|
||||||
|
g_pattern_spec_free (spec);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,6 +132,7 @@ test_compilation (gchar *src,
|
|||||||
g_print ("failed \t(min_length: %d, expected %d)\n",
|
g_print ("failed \t(min_length: %d, expected %d)\n",
|
||||||
spec->min_length,
|
spec->min_length,
|
||||||
min);
|
min);
|
||||||
|
g_pattern_spec_free (spec);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,6 +140,8 @@ test_compilation (gchar *src,
|
|||||||
match_type_name (spec->match_type),
|
match_type_name (spec->match_type),
|
||||||
spec->pattern);
|
spec->pattern);
|
||||||
|
|
||||||
|
g_pattern_spec_free (spec);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,6 +161,7 @@ do_argv_test (const gchar *cmdline, const TestResult *result)
|
|||||||
fprintf (stderr, "argv didn't get NULL-terminated\n");
|
fprintf (stderr, "argv didn't get NULL-terminated\n");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
g_strfreev (argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -88,6 +88,7 @@ int main (int argc, char **argv)
|
|||||||
if (!infile)
|
if (!infile)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Failed to open %s\n", filename );
|
fprintf (stderr, "Failed to open %s\n", filename );
|
||||||
|
g_free (filename);
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,6 +115,7 @@ int main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fclose (infile);
|
fclose (infile);
|
||||||
|
g_free (filename);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -221,6 +221,7 @@ run_to_uri_tests (void)
|
|||||||
g_print ("Error message: %s\n", error->message);
|
g_print ("Error message: %s\n", error->message);
|
||||||
any_failed = TRUE;
|
any_failed = TRUE;
|
||||||
}
|
}
|
||||||
|
g_free (res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user