summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-02-23 15:40:09 +0100
committerBenjamin Otte <otte@redhat.com>2014-02-23 15:40:46 +0100
commit947cac2b85bd60558e766db4f7b276aad0435405 (patch)
tree1e13d4565a8920fa95b9370e5ef3a2277452eb0d /testsuite
parent7a603c6909ad4f50376431a0ee7ae3a57862ec78 (diff)
downloadgtk+-947cac2b85bd60558e766db4f7b276aad0435405.tar.gz
testsuite: Don't leak in test runner
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/css/parser/test-css-parser.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/css/parser/test-css-parser.c b/testsuite/css/parser/test-css-parser.c
index 34ee3ae7dd..f985d86f82 100644
--- a/testsuite/css/parser/test-css-parser.c
+++ b/testsuite/css/parser/test-css-parser.c
@@ -221,12 +221,18 @@ test_css_file (GFile *file)
static void
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,
g_object_ref (file),
NULL,
(GTestFixtureFunc) test_css_file,
(GTestFixtureFunc) g_object_unref);
+
+ g_free (path);
}
static int