diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-16 11:54:33 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-10-16 13:07:51 -0400 |
commit | 17760bd2ebd87570e04efee856c7e232f8154bfa (patch) | |
tree | aab2695ae8a7d73c008db4189c22c7e1a80cea98 /gtk/gtkcssshadowvalue.c | |
parent | 97f49c681bb42fd3b88d2b85bd10ba6dbf00a4bf (diff) | |
download | gtk+-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.c | 1 |
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; } |