nouveau/winsys: be nice and close the device on destroy
PATCH 1/1 nouveau/winsys: be nice and close the device on destroy
---
this patch depends on "nouveau: fix winsys object leak"
--- .../winsys/drm/nouveau/drm/nouveau_drm_api.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c +2 -0
@@ -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); }
Signature · 1 line
1.6.6
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Marcin Slusarz
(...)
ping