From: Marcin Slusarz Date: Sun, 17 Jan 2010 22:51:22 +0000 (+0100) Subject: nouveau/winsys: be nice and close the device on destroy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74989972ba4fd629905799ed2181f8f6f4e53c2b;p=mesa.git nouveau/winsys: be nice and close the device on destroy --- 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); }