[gtk+/rendering-cleanup: 67/75] Add missing calls to cairo_destroy()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 67/75] Add missing calls to cairo_destroy()
- Date: Wed, 4 Aug 2010 22:06:36 +0000 (UTC)
commit 9c7fce349e96e5669ac9b65b7719f04b14bc6f64
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 e0e4740..32c947e 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:
@@ -3713,6 +3715,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]