diff options
author | Nelson Benítez León <nbenitezl@gmail.com> | 2022-07-30 15:14:24 -0400 |
---|---|---|
committer | Nelson Benítez León <nbenitezl@gmail.com> | 2022-07-30 15:14:24 -0400 |
commit | 45519b47cb5eb4acd4377d113fd248f9b8a73e88 (patch) | |
tree | 8ce8ad6e4aa08a31addf22f66739500ec25725ea | |
parent | 56314b46eaa718ee770602b84788cbff037cb09d (diff) | |
download | gtk+-fix_crash_needs_widget_path.tar.gz |
Fix crash inside widget_needs_widget_path()fix_crash_needs_widget_path
Crash found at least in Nautilus and Gnome-calendar:
https://bugzilla.redhat.com/buglist.cgi?quicksearch=widget_needs_widget_path
Fixes #2457
-rw-r--r-- | gtk/gtkcsswidgetnode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c index 2d65b266db..d42011b20a 100644 --- a/gtk/gtkcsswidgetnode.c +++ b/gtk/gtkcsswidgetnode.c @@ -165,7 +165,7 @@ widget_needs_widget_path (GtkWidget *widget) } parent = _gtk_widget_get_parent (widget); - if (parent == NULL) + if (parent == NULL || !GTK_IS_CONTAINER (parent)) return FALSE; parent_func = GTK_CONTAINER_GET_CLASS (GTK_CONTAINER (parent))->get_path_for_child; |