This replaces the previously used wl_display_destroy.
wl_display_destroy was povided by wayland-client.so and
wayland-server.so, to resolve that conflict its renamed client-side.
free(dri2_dpy->device_name);
wl_drm_destroy(dri2_dpy->wl_drm);
if (dri2_dpy->own_device)
- wl_display_destroy(dri2_dpy->wl_dpy);
+ wl_display_disconnect(dri2_dpy->wl_dpy);
free(dri2_dpy);
disp->DriverData = NULL;
if (drmdpy->base.configs)
FREE(drmdpy->base.configs);
if (drmdpy->base.own_dpy)
- wl_display_destroy(drmdpy->base.dpy);
+ wl_display_disconnect(drmdpy->base.dpy);
ndpy_uninit(ndpy);
if (shmdpy->base.configs)
FREE(shmdpy->base.configs);
if (shmdpy->base.own_dpy)
- wl_display_destroy(shmdpy->base.dpy);
+ wl_display_disconnect(shmdpy->base.dpy);
ndpy_uninit(ndpy);