diff options
author | Marcin Slusarz <[email protected]> | 2010-01-17 23:51:22 +0100 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2010-01-25 09:43:59 +1000 |
commit | 74989972ba4fd629905799ed2181f8f6f4e53c2b (patch) | |
tree | 95440db70c93b796a25be829b369675eb87532db /src/gallium/winsys | |
parent | 283b21d02bff3d4bd6127f6b642331e06db41ace (diff) |
nouveau/winsys: be nice and close the device on destroy
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c index 29afff6faf8..75cd1e2902b 100644 --- a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c +++ b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c @@ -58,6 +58,8 @@ static void nouveau_drm_destroy_winsys(struct pipe_winsys *s) { struct nouveau_winsys *nv_winsys = nouveau_winsys(s); + struct nouveau_screen *nv_screen= nouveau_screen(nv_winsys->pscreen); + nouveau_device_close(&nv_screen->device); FREE(nv_winsys->pctx); FREE(nv_winsys); } |