From f1ff6e0e1c287e2408f9897396680815a7f3155d Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Tue, 21 Jun 2005 22:46:30 +0000 Subject: [PATCH] Don't leak the cairo context Closes bug #308581. 2005-06-22 Kjartan Maraas * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context Closes bug #308581. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkhsv.c | 3 ++- 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f379b8ba19..23aed6d9ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-22 Kjartan Maraas + + * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context + Closes bug #308581. + 2005-06-21 Matthias Clasen * gtk/gtkarrow.c: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index f379b8ba19..23aed6d9ac 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-06-22 Kjartan Maraas + + * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context + Closes bug #308581. + 2005-06-21 Matthias Clasen * gtk/gtkarrow.c: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index f379b8ba19..23aed6d9ac 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2005-06-22 Kjartan Maraas + + * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context + Closes bug #308581. + 2005-06-21 Matthias Clasen * gtk/gtkarrow.c: diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index b73f59d7a4..58ea87922d 100644 --- a/gtk/gtkhsv.c +++ b/gtk/gtkhsv.c @@ -1305,7 +1305,8 @@ gtk_hsv_expose (GtkWidget *widget, dest.x - widget->allocation.x, dest.y - widget->allocation.y, dest.width, dest.height); - + cairo_destroy (cr); + if (GTK_WIDGET_HAS_FOCUS (hsv) && priv->focus_on_ring) gtk_paint_focus (widget->style, widget->window, GTK_WIDGET_STATE (widget),