egl/wayland: rather obvious build fix
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 28 Nov 2018 17:30:36 +0000 (18:30 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 28 Nov 2018 17:30:36 +0000 (18:30 +0100)
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

index 3254ed9120911936571aa51f060f9baac2da4b91..34e09d7ec1677a5138962f56807b2995c280fc2e 100644 (file)
@@ -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;
       }