summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-03-02 21:20:24 +0100
committerraveit65 <[email protected]>2020-03-11 14:15:06 +0100
commit55a53971dff663bf5ae610a3d36642a6ff3e52c0 (patch)
treeab05920ff2eab76cd716e3f6e3a0bcaa42fe96c1
parent6749f0b63fbbb49f15b2591e37a24e2199897d03 (diff)
downloadmate-panel-55a53971dff663bf5ae610a3d36642a6ff3e52c0.tar.bz2
mate-panel-55a53971dff663bf5ae610a3d36642a6ff3e52c0.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;
}