[gtk+/rendering-cleanup] Add missing calls to cairo_destroy()



commit 4211ed5e15de254cb56ffc05c28435653290ecc3
Author: Kristian Rietveld <kris gtk org>
Date:   Tue Jul 27 17:46:51 2010 +0200

    Add missing calls to cairo_destroy()

 gtk/gtkstyle.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 6994ef2..e9926d1 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -1981,6 +1981,7 @@ gtk_default_draw_shadow (GtkStyle      *style,
 	  draw_spinbutton_shadow (style, cr, state_type, 
 				  get_direction (widget), area, x, y, width, height);
 	  
+	  cairo_destroy (cr);
 	  return;
 	}
     }
@@ -1995,6 +1996,7 @@ gtk_default_draw_shadow (GtkStyle      *style,
   switch (shadow_type)
     {
     case GTK_SHADOW_NONE:
+      cairo_destroy (cr);
       return;
     case GTK_SHADOW_IN:
     case GTK_SHADOW_ETCHED_IN:
@@ -3712,6 +3714,7 @@ gtk_default_draw_extension (GtkStyle       *style,
   switch (shadow_type)
     {
     case GTK_SHADOW_NONE:
+      cairo_destroy (cr);
       return;
     case GTK_SHADOW_IN:
       color1 = style->dark[state_type];



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