From d6f195acca5de465532cba3efd4b0c592ca542d9 Mon Sep 17 00:00:00 2001 From: Bill Doyle Date: Mon, 2 Nov 2020 22:00:48 -0500 Subject: [PATCH] Free cairo_patterns used for scaling --- animation.c | 1 + 1 file changed, 1 insertion(+) diff --git a/animation.c b/animation.c index 50f3d58..e53f48f 100644 --- a/animation.c +++ b/animation.c @@ -117,6 +117,7 @@ static void scale_image_onto( cairo_pattern_set_filter(pattern, filter); cairo_set_source(cairo, pattern); cairo_paint(cairo); + cairo_pattern_destroy(pattern); cairo_restore(cairo); }