summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/egl/drivers/dri2/platform_tizen.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/egl/drivers/dri2/platform_tizen.c b/src/egl/drivers/dri2/platform_tizen.c
index 3ab10b9b9f5..ddc399596f5 100755
--- a/src/egl/drivers/dri2/platform_tizen.c
+++ b/src/egl/drivers/dri2/platform_tizen.c
@@ -1597,13 +1597,13 @@ dri2_initialize_tizen(_EGLDriver *drv, _EGLDisplay *disp)
dri2_dpy->loader_extensions = tizen_dri2_loader_extensions;
if (!dri2_load_driver(disp)) {
err = "DRI2: failed to load driver";
- goto cleanup_device;
+ goto cleanup_driver_name;
}
} else {
dri2_dpy->loader_extensions = tizen_image_loader_extensions;
if (!dri2_load_driver_dri3(disp)) {
err = "DRI3: failed to load driver";
- goto cleanup_device;
+ goto cleanup_driver_name;
}
}
} else {
@@ -1671,8 +1671,7 @@ cleanup_screen:
cleanup_driver:
dlclose(dri2_dpy->driver);
cleanup_driver_name:
- if (hw_accel)
- free(dri2_dpy->driver_name);
+ free(dri2_dpy->driver_name);
cleanup_device:
tpl_object_unreference((tpl_object_t *)tpl_display);
cleanup_display: