Re: Cairo based engine api for GTK+ 3.0
- From: Chris Wilson <chris chris-wilson co uk>
- To: Thomas Wood <thos gnome org>
- Cc: gtk-devel-list gnome org
- Subject: Re: Cairo based engine api for GTK+ 3.0
- Date: Thu, 18 Jun 2009 21:19:34 +0100
Hi Thomas,
here's another little issue I ran across:
>From 5498fa8670a07192eea35937d58b250de5a2567b Mon Sep 17 00:00:00 2001
From: Chris Wilson <chris chris-wilson co uk>
Date: Thu, 18 Jun 2009 21:06:14 +0100
Subject: [PATCH] [style] Add a couple of missing cairo_destroy().
---
gtk/gtkstyle.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 01d81e6..73d9eab 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -2733,6 +2733,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;
}
}
@@ -4743,6 +4744,8 @@ gtk_default_draw_extension (GtkStyle *style,
break;
}
}
+
+ cairo_destroy (cr);
}
static void
--
1.6.3.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]