xwayland/present: Handle NULL window_priv in xwl_present_cleanup
This can happen if the window has never completed a Present operation.
Fixes: 4230176080
("xwayland/present: Embed present_vblank_rec in xwl_present_event")
This commit is contained in:
parent
f273c960c1
commit
32c5b2c044
|
@ -414,9 +414,11 @@ xwl_present_cleanup(WindowPtr window)
|
||||||
xwl_present_window->sync_callback = NULL;
|
xwl_present_window->sync_callback = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear remaining events */
|
if (window_priv) {
|
||||||
xorg_list_for_each_entry_safe(event, tmp, &window_priv->vblank, vblank.window_list)
|
/* Clear remaining events */
|
||||||
xwl_present_free_event(event);
|
xorg_list_for_each_entry_safe(event, tmp, &window_priv->vblank, vblank.window_list)
|
||||||
|
xwl_present_free_event(event);
|
||||||
|
}
|
||||||
|
|
||||||
/* Clear timer */
|
/* Clear timer */
|
||||||
xwl_present_free_timer(xwl_present_window);
|
xwl_present_free_timer(xwl_present_window);
|
||||||
|
|
Loading…
Reference in New Issue