From c02390f8fcd367c7350db568feabb2f062efca14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 28 Nov 2018 18:30:36 +0100 Subject: [PATCH] egl/wayland: rather obvious build fix Fixes: ce74a7bb8de7 ("egl/wayland: plug memory leak in drm_handle_device()") Fixes: c59d3aa4b9bc ("egl/wayland: bail out when drmGetMagic fails") --- src/egl/drivers/dri2/platform_wayland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 3254ed91209..34e09d7ec16 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -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; } -- 2.30.2