summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c')
-rw-r--r--src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c b/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
index 9000a6ac3ed..790ed7d69e9 100644
--- a/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
+++ b/src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
@@ -40,6 +40,9 @@
static void kmsro_ro_destroy(struct renderonly *ro)
{
+ if (ro->gpu_fd >= 0)
+ close(ro->gpu_fd);
+
FREE(ro);
}