Skip to content

Commit 3020439

Browse files
layercak3kasper93
authored andcommitted
video/out/wayland_common: fix crash when uninit without display
Fixes: 39c9d1a ("video/out/vulkan/context_wayland: implement target_csp for wayland")
1 parent cf393b1 commit 3020439

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

video/out/wayland_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4474,7 +4474,8 @@ void vo_wayland_uninit(struct vo *vo)
44744474
mp_input_put_key(wl->vo->input_ctx, MP_INPUT_RELEASE_ALL);
44754475

44764476
// Ensure that any in-flight vo_wayland_preferred_description_info get deallocated.
4477-
wl_display_roundtrip(wl->display);
4477+
if (wl->display)
4478+
wl_display_roundtrip(wl->display);
44784479

44794480
if (wl->compositor)
44804481
wl_compositor_destroy(wl->compositor);

0 commit comments

Comments
 (0)