[gtk+] cssshadow: plug a cairo_surface_t leak



commit 17760bd2ebd87570e04efee856c7e232f8154bfa
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Oct 16 11:54:33 2012 -0400

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index be21597..40dd3a0 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;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]