aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'freedreno/freedreno_device.c')
-rw-r--r--freedreno/freedreno_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c
index fcbf1402..dba7ec47 100644
--- a/freedreno/freedreno_device.c
+++ b/freedreno/freedreno_device.c
@@ -115,9 +115,10 @@ static void fd_device_del_impl(struct fd_device *dev)
115 fd_bo_cache_cleanup(&dev->bo_cache, 0); 115 fd_bo_cache_cleanup(&dev->bo_cache, 0);
116 drmHashDestroy(dev->handle_table); 116 drmHashDestroy(dev->handle_table);
117 drmHashDestroy(dev->name_table); 117 drmHashDestroy(dev->name_table);
118 dev->funcs->destroy(dev);
118 if (dev->closefd) 119 if (dev->closefd)
119 close(dev->fd); 120 close(dev->fd);
120 dev->funcs->destroy(dev); 121 free(dev);
121} 122}
122 123
123drm_private void fd_device_del_locked(struct fd_device *dev) 124drm_private void fd_device_del_locked(struct fd_device *dev)