summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-22 18:07:59 +0200
committerPablo Barciela <[email protected]>2020-08-03 13:46:34 +0200
commit4aa200f0e45e36f6cd31d659001a444ecb7c9841 (patch)
tree4a3b1dd1df2724842b6b422635ea6acabb0ae470
parent63ef9f71bd1cafa627f55b5705114dce03b0a865 (diff)
downloadmate-panel-4aa200f0e45e36f6cd31d659001a444ecb7c9841.tar.bz2
mate-panel-4aa200f0e45e36f6cd31d659001a444ecb7c9841.tar.xz
wncklet: Fix leaking cairo_t
-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