[gtk+] GtkColorButton: Don't forget to close a cairo context
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkColorButton: Don't forget to close a cairo context
- Date: Wed, 24 Aug 2011 11:47:53 +0000 (UTC)
commit 144e4af8bc583af536851bf6b11daaad8b5e4435
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Aug 24 07:46:35 2011 -0400
GtkColorButton: Don't forget to close a cairo context
Patch by Jerome Lambourg, bug 655392.
gtk/gtkcolorbutton.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index 5f13c54..72e4ddb 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -336,6 +336,8 @@ gtk_color_button_draw_cb (GtkWidget *widget,
cairo_pattern_destroy (checkered);
}
+ cairo_destroy (cr);
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]