mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 21:00:18 +01:00
[test] Add leak-revealing path to rectilinear-stroke
Based on this thread: http://lists.freedesktop.org/archives/cairo/2007-March/009860.html
This commit is contained in:
parent
bd2cd2c868
commit
2acd5b5277
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue