From 144e4af8bc583af536851bf6b11daaad8b5e4435 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Aug 2011 07:46:35 -0400 Subject: [PATCH] GtkColorButton: Don't forget to close a cairo context Patch by Jerome Lambourg, bug 655392. --- gtk/gtkcolorbutton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c index 5f13c54606..72e4ddbff2 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; }