diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2005-06-21 22:46:30 +0000 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2005-06-21 22:46:30 +0000 |
commit | f1ff6e0e1c287e2408f9897396680815a7f3155d (patch) | |
tree | ce54d702e2be34d22e575625750693342b44ce19 /gtk/gtkhsv.c | |
parent | 2ef6d354d1ad64a484c8980e8d2a908adb274d96 (diff) | |
download | gtk+-f1ff6e0e1c287e2408f9897396680815a7f3155d.tar.gz |
Don't leak the cairo context Closes bug #308581.
2005-06-22 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
Closes bug #308581.
Diffstat (limited to 'gtk/gtkhsv.c')
-rw-r--r-- | gtk/gtkhsv.c | 3 |
1 files changed, 2 insertions, 1 deletions
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), |