summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-03-02 21:20:24 +0100
committerraveit65 <[email protected]>2020-03-11 14:21:11 +0100
commit79d2cc90e9e18496c2cc31f26eae03b3ab1e59b6 (patch)
tree8c263f1ae26591ab82d54b5ba4d1d17d82e57ca9
parent01027ded8c8e9451d0dd34cd0b34db07462a352b (diff)
downloadmate-panel-79d2cc90e9e18496c2cc31f26eae03b3ab1e59b6.tar.bz2
mate-panel-79d2cc90e9e18496c2cc31f26eae03b3ab1e59b6.tar.xz
button-widget: Fix memory leak
-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;
}