Fix leak in pattern-getters test (missing cairo_pattern_destroy)

This commit is contained in:
Carl Worth 2007-03-02 11:32:47 -08:00
parent b52dda62fe
commit 9854d01a8d

View file

@ -160,6 +160,8 @@ draw (cairo_t *cr, int width, int height)
!DOUBLE_EQUALS(e,5.0) ||
!DOUBLE_EQUALS(f,6.0))
return CAIRO_TEST_FAILURE;
cairo_pattern_destroy (pat);
}
cairo_set_source_rgb (cr, 0, 1, 0);