summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshadowvalue.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-10-16 11:54:33 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-10-16 13:07:51 -0400
commit17760bd2ebd87570e04efee856c7e232f8154bfa (patch)
treeaab2695ae8a7d73c008db4189c22c7e1a80cea98 /gtk/gtkcssshadowvalue.c
parent97f49c681bb42fd3b88d2b85bd10ba6dbf00a4bf (diff)
downloadgtk+-17760bd2ebd87570e04efee856c7e232f8154bfa.tar.gz
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
Diffstat (limited to 'gtk/gtkcssshadowvalue.c')
-rw-r--r--gtk/gtkcssshadowvalue.c1
1 files changed, 1 insertions, 0 deletions
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;
}