mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Don't leak draw_border. (#387170, Kjartan Maraas)
2006-12-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't leak draw_border. (#387170, Kjartan Maraas)
This commit is contained in:
parent
030a61a931
commit
33153bec36
@ -1,3 +1,8 @@
|
||||
2006-12-22 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): Don't
|
||||
leak draw_border. (#387170, Kjartan Maraas)
|
||||
|
||||
2006-12-21 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_set_delegate()):
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user