From 089892df2761c4e60e3e5559a57be91501603c27 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Tue, 27 Jul 2010 17:46:51 +0200 Subject: [PATCH] Add missing calls to cairo_destroy() --- gtk/gtkstyle.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 5b9a2b8eac..d4954eda65 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: @@ -3714,6 +3716,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];