[cairo-commit] test/subsurface-outside-target.c

Andrea Canciani ranma42 at kemper.freedesktop.org
Thu Sep 9 22:38:48 PDT 2010


 test/subsurface-outside-target.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 291876ad3477330143bbb814ea72c658dc8ca584
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Thu Sep 9 22:53:38 2010 +0200

    test: do not leak resources
    
    Silence some leak reports by check-valgrind.

diff --git a/test/subsurface-outside-target.c b/test/subsurface-outside-target.c
index fd51243..c60ca8a 100644
--- a/test/subsurface-outside-target.c
+++ b/test/subsurface-outside-target.c
@@ -75,6 +75,7 @@ check_surface_extents (const cairo_test_context_t *ctx,
 
     cr = cairo_create (surface);
     cairo_clip_extents (cr, &x1, &y1, &x2, &y2);
+    cairo_destroy (cr);
 
     if (x != x1 ||
         y != y1 ||


More information about the cairo-commit mailing list