mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 03:50:13 +01:00
egl/wayland: rather obvious build fix
Fixes:ce74a7bb8d("egl/wayland: plug memory leak in drm_handle_device()") Fixes:c59d3aa4b9("egl/wayland: bail out when drmGetMagic fails")
This commit is contained in:
parent
eb94b6bd5c
commit
c02390f8fc
1 changed files with 2 additions and 2 deletions
|
|
@ -1128,7 +1128,7 @@ drm_handle_device(void *data, struct wl_drm *drm, const char *device)
|
|||
_eglLog(_EGL_WARNING, "wayland-egl: could not open %s (%s)",
|
||||
dri2_dpy->device_name, strerror(errno));
|
||||
free(dri2_dpy->device_name);
|
||||
dri2_dpy->device_name = NULL:
|
||||
dri2_dpy->device_name = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1139,7 +1139,7 @@ drm_handle_device(void *data, struct wl_drm *drm, const char *device)
|
|||
close(dri2_dpy->fd);
|
||||
dri2_dpy->fd = -1;
|
||||
free(dri2_dpy->device_name);
|
||||
dri2_dpy->device_name = NULL:
|
||||
dri2_dpy->device_name = NULL;
|
||||
_eglLog(_EGL_WARNING, "wayland-egl: drmGetMagic failed");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue