testsuite: Don't leak in test runner
This commit is contained in:
@ -221,12 +221,18 @@ test_css_file (GFile *file)
|
|||||||
static void
|
static void
|
||||||
add_test_for_file (GFile *file)
|
add_test_for_file (GFile *file)
|
||||||
{
|
{
|
||||||
g_test_add_vtable (g_file_get_path (file),
|
char *path;
|
||||||
|
|
||||||
|
path = g_file_get_path (file);
|
||||||
|
|
||||||
|
g_test_add_vtable (path,
|
||||||
0,
|
0,
|
||||||
g_object_ref (file),
|
g_object_ref (file),
|
||||||
NULL,
|
NULL,
|
||||||
(GTestFixtureFunc) test_css_file,
|
(GTestFixtureFunc) test_css_file,
|
||||||
(GTestFixtureFunc) g_object_unref);
|
(GTestFixtureFunc) g_object_unref);
|
||||||
|
|
||||||
|
g_free (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user