Handle widget being NULL. Pointed out by Wouter Bolsterlee.

* gtk/gtkpaned.c (get_child_panes): Handle widget being NULL.
        Pointed out by Wouter Bolsterlee.


svn path=/trunk/; revision=22419
This commit is contained in:
Matthias Clasen 2009-02-28 00:52:59 +00:00
parent 08db83d2ac
commit 3a8c0e370b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-02-27 Matthias Clasen <mclasen@redhat.com>
Bug 572996 crash in Home Folder: Trying to open the sidebar
* gtk/gtkpaned.c (get_child_panes): Handle widget being NULL.
Pointed out by Wouter Bolsterlee.
2009-02-27 Matthias Clasen <mclasen@redhat.com>
Bug 572972 GtkRecentChooserDefault: memory leak in

View File

@ -1890,7 +1890,7 @@ static void
get_child_panes (GtkWidget *widget,
GList **panes)
{
if (!GTK_WIDGET_REALIZED (widget))
if (!widget || !GTK_WIDGET_REALIZED (widget))
return;
if (GTK_IS_PANED (widget))