summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/gbm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/gbm')
-rw-r--r--src/gallium/state_trackers/gbm/gbm_drm.c5
-rw-r--r--src/gallium/state_trackers/gbm/gbm_gallium_drmint.h3
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/gbm/gbm_drm.c b/src/gallium/state_trackers/gbm/gbm_drm.c
index d4baf87096a..a327fdaae64 100644
--- a/src/gallium/state_trackers/gbm/gbm_drm.c
+++ b/src/gallium/state_trackers/gbm/gbm_drm.c
@@ -190,10 +190,7 @@ gbm_gallium_drm_destroy(struct gbm_device *gbm)
{
struct gbm_gallium_drm_device *gdrm = gbm_gallium_drm_device(gbm);
- gdrm->screen->destroy(gdrm->screen);
-
- FREE(gdrm->base.driver_name);
-
+ gallium_screen_destroy(gdrm);
FREE(gdrm);
}
diff --git a/src/gallium/state_trackers/gbm/gbm_gallium_drmint.h b/src/gallium/state_trackers/gbm/gbm_gallium_drmint.h
index 6277b8dba2e..a5d6d834737 100644
--- a/src/gallium/state_trackers/gbm/gbm_gallium_drmint.h
+++ b/src/gallium/state_trackers/gbm/gbm_gallium_drmint.h
@@ -71,4 +71,7 @@ gbm_gallium_drm_device_create(int fd);
int
gallium_screen_create(struct gbm_gallium_drm_device *gdrm);
+void
+gallium_screen_destroy(struct gbm_gallium_drm_device *gdrm);
+
#endif