summaryrefslogtreecommitdiff
path: root/background-image.c
diff options
context:
space:
mode:
Diffstat (limited to 'background-image.c')
-rw-r--r--background-image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/background-image.c b/background-image.c
index 26cb6ee..53d1b63 100644
--- a/background-image.c
+++ b/background-image.c
@@ -108,6 +108,7 @@ void render_background_image(cairo_t *cairo, cairo_surface_t *image,
cairo_pattern_t *pattern = cairo_pattern_create_for_surface(image);
cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REPEAT);
cairo_set_source(cairo, pattern);
+ cairo_pattern_destroy(pattern);
break;
}
case BACKGROUND_MODE_SOLID_COLOR: