OSDN Git Service

egl/android: fix incompatible pointer in free(device_name)
[android-x86/external-mesa.git] / src / egl / drivers / dri2 / platform_android.c
index 5500e50..530ff10 100644 (file)
@@ -1222,7 +1222,7 @@ droid_open_device_drm_gralloc(_EGLDisplay *disp)
        property_get("ro.hardware.hwcomposer", buf, NULL) > 0) {
       dri2_dpy->fd = fcntl(fd, F_DUPFD_CLOEXEC, 3);
    } else {
-      const char *device_name = drmGetRenderDeviceNameFromFd(fd);
+      char *device_name = drmGetRenderDeviceNameFromFd(fd);
       dri2_dpy->fd = loader_open_device(device_name);
       free(device_name);
    }