nouveau/winsys: be nice and close the device on destroy
This commit is contained in:
committed by
Ben Skeggs
parent
283b21d02b
commit
74989972ba
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user