Compare commits

...

1 Commits

Author SHA1 Message Date
Nelson Benítez León
1983dfb540 fix crash in gtk_synthesize_crossing_events()
prevent accessing on a NULL variable.

Fixes #5190
2022-09-17 23:00:30 -04:00

View File

@@ -1205,7 +1205,7 @@ gtk_synthesize_crossing_events (GtkRoot *toplevel,
GtkWidget *w;
crossing.old_descendent = NULL;
for (w = old_target; w != ancestor; w = _gtk_widget_get_parent (w))
for (w = old_target; w && w != ancestor; w = _gtk_widget_get_parent (w))
crossing.old_descendent = w;
seen_ancestor = TRUE;