mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 14:50:11 +01:00
wsi/wl: check wsi_wl_surface's validity before use
Fixes: 9a00a360ad ("wsi/wl: flush connection on swapchain failure")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27767>
This commit is contained in:
parent
8ab337047c
commit
a8a4bcec36
1 changed files with 2 additions and 1 deletions
|
|
@ -2226,7 +2226,8 @@ wsi_wl_swapchain_chain_free(struct wsi_wl_swapchain *chain,
|
|||
* creation (see MAX_FDS_OUT) to avoid filling up VRAM with
|
||||
* released buffers.
|
||||
*/
|
||||
wl_display_flush(chain->wsi_wl_surface->display->wl_display);
|
||||
if (chain->wsi_wl_surface)
|
||||
wl_display_flush(chain->wsi_wl_surface->display->wl_display);
|
||||
|
||||
if (chain->frame)
|
||||
wl_callback_destroy(chain->frame);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue