From ba30657782a775e04e6d902cd8557da9eeab8716 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Wed, 22 Jul 2020 18:07:59 +0200 Subject: wncklet: Fix leaking cairo_t --- applets/wncklet/showdesktop.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1