Don't leak list of children. (#140523)

2004-04-19  Morten Welinder  <terra@gnome.org>

	* gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
	children.  (#140523)
This commit is contained in:
Morten Welinder 2004-04-19 19:52:45 +00:00 committed by Morten Welinder
parent 0dc58fb24d
commit cfe7b384bc
6 changed files with 36 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2004-04-19 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
children. (#140523)
2004-04-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):

View File

@ -1,3 +1,8 @@
2004-04-19 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
children. (#140523)
2004-04-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):

View File

@ -1,3 +1,8 @@
2004-04-19 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
children. (#140523)
2004-04-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):

View File

@ -1,3 +1,8 @@
2004-04-19 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
children. (#140523)
2004-04-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):

View File

@ -1,3 +1,8 @@
2004-04-19 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (gtk_toolbar_focus): Don't leak list of
children. (#140523)
2004-04-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):

View File

@ -1743,6 +1743,7 @@ gtk_toolbar_focus (GtkWidget *widget,
{
GtkToolbar *toolbar = GTK_TOOLBAR (widget);
GList *children, *list;
gboolean result = FALSE;
/* if focus is already somewhere inside the toolbar then return FALSE.
* The only way focus can stay inside the toolbar is when the user presses
@ -1759,12 +1760,15 @@ gtk_toolbar_focus (GtkWidget *widget,
GtkWidget *child = list->data;
if (GTK_WIDGET_MAPPED (child) && gtk_widget_child_focus (child, dir))
return TRUE;
{
result = TRUE;
break;
}
}
g_list_free (children);
return FALSE;
return result;
}
static void