diff options
author | Carl Worth <cworth@cworth.org> | 2007-03-02 11:31:13 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-03-02 11:31:13 -0800 |
commit | b52dda62fea0745cc28d6149dc4688ade524b4df (patch) | |
tree | e39fea2b93b977ad0b232b8cda4f732c3d972764 /test/copy-path.c | |
parent | 7d6e21c7e298e1795f36fdf021d61ef4ed0ca0fa (diff) | |
download | cairo-b52dda62fea0745cc28d6149dc4688ade524b4df.tar.gz |
Augment cairo_test_init with cairo_test_fini to avoid leak
Without this, any tests that were using cairo_test_init rather than
cairo_test would end up leaking a FILE* for the log file. So this
keeps valgrind much more happy with the test suite.
Diffstat (limited to 'test/copy-path.c')
-rw-r--r-- | test/copy-path.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/copy-path.c b/test/copy-path.c index b7635468f..142bfa57d 100644 --- a/test/copy-path.c +++ b/test/copy-path.c @@ -124,6 +124,8 @@ draw (cairo_t *cr, int width, int height) } cairo_path_destroy (path); + cairo_destroy (cr_error); + /* We draw in the default black, so paint white first. */ cairo_save (cr); cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); /* white */ |