summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/button-widget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c
index 1f3abb0c..35427a0f 100644
--- a/mate-panel/button-widget.c
+++ b/mate-panel/button-widget.c
@@ -111,6 +111,7 @@ make_hc_surface (cairo_surface_t *surface)
cr = cairo_create (new);
cairo_set_operator (cr, CAIRO_OPERATOR_DEST_IN);
cairo_mask_surface (cr, surface, 0, 0);
+ cairo_destroy (cr);
return new;
}