Skip to contentSkip to conversation

nouveau/winsys: be nice and close the device on destroy

PATCH In review Marcin Slusarz 1 participant 2 messages Jan 17, 2010 – Jan 24, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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
index 39b985c..868d1ca 100644
@@ -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]