mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 01:48:02 +02:00
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") (cherry picked from commit32c5b2c044)
This commit is contained in:
parent
2bd43be92c
commit
c9a842e607
1 changed files with 5 additions and 3 deletions
|
|
@ -414,9 +414,11 @@ xwl_present_cleanup(WindowPtr window)
|
|||
xwl_present_window->sync_callback = NULL;
|
||||
}
|
||||
|
||||
/* Clear remaining events */
|
||||
xorg_list_for_each_entry_safe(event, tmp, &window_priv->vblank, vblank.window_list)
|
||||
xwl_present_free_event(event);
|
||||
if (window_priv) {
|
||||
/* Clear remaining events */
|
||||
xorg_list_for_each_entry_safe(event, tmp, &window_priv->vblank, vblank.window_list)
|
||||
xwl_present_free_event(event);
|
||||
}
|
||||
|
||||
/* Clear timer */
|
||||
xwl_present_free_timer(xwl_present_window);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue