diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-03-01 18:34:53 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-03-01 18:34:53 -0500 |
commit | 2acd5b52774e2324df3e6b5b07a0d2790df3a60b (patch) | |
tree | 7f2e6067a72c8a4fc84a8f89f087bb9231719b46 /test/rectilinear-stroke.c | |
parent | bd2cd2c868864d5ec2a2c2e4bf16ff406be8afe2 (diff) |
[test] Add leak-revealing path to rectilinear-stroke
Based on this thread:
http://lists.freedesktop.org/archives/cairo/2007-March/009860.html
Diffstat (limited to 'test/rectilinear-stroke.c')
-rw-r--r-- | test/rectilinear-stroke.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rectilinear-stroke.c b/test/rectilinear-stroke.c index 6ba3f1a3..379284d2 100644 --- a/test/rectilinear-stroke.c +++ b/test/rectilinear-stroke.c @@ -126,6 +126,14 @@ draw (cairo_t *cr, int width, int height) /* Draw a closed-path rectangle */ cairo_rectangle (cr, 0.5, 12.5, 10.0, 10.0); + /* Draw a path that is rectilinear initially, but not completely */ + /* We draw this out of the target window. The bug that caused this + * addition was leaks if part of the path was rectilinear but not + * completely */ + cairo_move_to (cr, 3.0, 30.5); + cairo_rel_line_to (cr, -2.5, 0.0); + cairo_rel_line_to (cr, +2.5, +2.5); + cairo_stroke (cr); return CAIRO_TEST_SUCCESS; |