From 17760bd2ebd87570e04efee856c7e232f8154bfa Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 16 Oct 2012 11:54:33 -0400 Subject: [PATCH] cssshadow: plug a cairo_surface_t leak We were never destroying the cairo surface we use for blurring, which would lead to a huge leak. https://bugzilla.gnome.org/show_bug.cgi?id=686209 --- gtk/gtkcssshadowvalue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c index be215972ad..40dd3a024b 100644 --- a/gtk/gtkcssshadowvalue.c +++ b/gtk/gtkcssshadowvalue.c @@ -363,6 +363,7 @@ gtk_css_shadow_value_finish_drawing (const GtkCssValue *shadow, cairo_paint (original_cr); cairo_destroy (cr); + cairo_surface_destroy (surface); return original_cr; }