summaryrefslogtreecommitdiff
path: root/test/shifted-operator.c
diff options
context:
space:
mode:
authorAnton Danilkin <afdw@yandex.ru>2021-05-03 23:41:41 +0200
committerAnton Danilkin <afdw@yandex.ru>2021-05-05 00:51:01 +0200
commitc2bf6e8ae418debc97b0ca65b7e452fc650d4655 (patch)
treeba400b1de30f1aadc4ff0d4762e92f561a49d989 /test/shifted-operator.c
parent9e497a3cb82a429a04dbbce8debeba5e0e37cf29 (diff)
downloadcairo-c2bf6e8ae418debc97b0ca65b7e452fc650d4655.tar.gz
Fix remaining tests
Diffstat (limited to 'test/shifted-operator.c')
-rw-r--r--test/shifted-operator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/shifted-operator.c b/test/shifted-operator.c
index c8b7cc737..70eb15b39 100644
--- a/test/shifted-operator.c
+++ b/test/shifted-operator.c
@@ -37,8 +37,10 @@ draw (cairo_t *cr, int width, int height)
cairo_rectangle (cr2, 40, 30, 120, 90);
cairo_set_source_rgba (cr2, 0, 0, 0.9, 0.4);
cairo_fill (cr2);
+ cairo_destroy (cr2);
cairo_pattern_t *pattern = cairo_pattern_create_for_surface (recording_surface);
+ cairo_surface_destroy(recording_surface);
cairo_matrix_t matrix;
cairo_matrix_init_translate (&matrix, -30, -30);
cairo_pattern_set_matrix (pattern, &matrix);