From 74989972ba4fd629905799ed2181f8f6f4e53c2b Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Sun, 17 Jan 2010 23:51:22 +0100 Subject: nouveau/winsys: be nice and close the device on destroy --- src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/winsys/drm') 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); } -- cgit v1.2.3