From 33153bec3679e9013bbcb819bc8b028cc4190ce0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 22 Dec 2006 06:29:51 +0000 Subject: [PATCH] Don't leak draw_border. (#387170, Kjartan Maraas) 2006-12-22 Matthias Clasen * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't leak draw_border. (#387170, Kjartan Maraas) --- ChangeLog | 5 +++++ gtk/gtkwidget.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7a98f30a08..524c160eb9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-22 Matthias Clasen + + * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't + leak draw_border. (#387170, Kjartan Maraas) + 2006-12-21 Matthias Clasen * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_set_delegate()): diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index ae16cb8fd6..81eee92462 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -2708,6 +2708,8 @@ gtk_widget_get_draw_rectangle (GtkWidget *widget, rect->y -= draw_border->left; rect->width += draw_border->left + draw_border->right; rect->height += draw_border->top + draw_border->bottom; + + gtk_border_free (draw_border); } if (GTK_IS_CONTAINER (widget))