summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-22 18:07:59 +0200
committerLuke from DC <[email protected]>2020-07-29 20:47:20 +0000
commitba30657782a775e04e6d902cd8557da9eeab8716 (patch)
tree6ecee4436a446e325b077f5876f5c4e8eb9e810f /applets/wncklet
parentc4bede86f6196d02f356eff49d3edb1a68f9b9b0 (diff)
downloadmate-panel-ba30657782a775e04e6d902cd8557da9eeab8716.tar.bz2
mate-panel-ba30657782a775e04e6d902cd8557da9eeab8716.tar.xz
wncklet: Fix leaking cairo_t
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/showdesktop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index d6c77a50..7999174a 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -224,6 +224,7 @@ static void update_icon(ShowDesktopData* sdd)
cairo_set_source_surface (cr, icon, 0, 0);
cairo_paint (cr);
gtk_image_set_from_surface (GTK_IMAGE(sdd->image), scaled);
+ cairo_destroy (cr);
cairo_surface_destroy (scaled);
}
else