diff options
-rw-r--r-- | src/gallium/drivers/vc4/vc4_bufmgr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index 653787e1905..581ba89fd07 100644 --- a/src/gallium/drivers/vc4/vc4_bufmgr.c +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c @@ -75,6 +75,9 @@ vc4_bo_free(struct vc4_bo *bo) #ifndef USE_VC4_SIMULATOR struct vc4_screen *screen = bo->screen; + if (bo->map) + munmap(bo->map, bo->size); + struct drm_gem_close c; c.handle = bo->handle; int ret = drmIoctl(screen->fd, DRM_IOCTL_GEM_CLOSE, &c); |