summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarcin Slusarz <[email protected]>2010-01-17 23:50:50 +0100
committerBen Skeggs <[email protected]>2010-01-25 09:43:33 +1000
commit283b21d02bff3d4bd6127f6b642331e06db41ace (patch)
tree3fd6bf89ee3c31bea5919416f1f8d9ce68487302 /src/gallium/drivers
parent833acea8f6bcbed8b477eb1a1d897127afb0e73e (diff)
nouveau: fix winsys object leak
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c
index 7ebc94ed6c7..1ad539d2858 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.c
+++ b/src/gallium/drivers/nouveau/nouveau_screen.c
@@ -260,6 +260,8 @@ nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev)
void
nouveau_screen_fini(struct nouveau_screen *screen)
{
+ struct pipe_winsys *ws = screen->base.winsys;
nouveau_channel_free(&screen->channel);
+ ws->destroy(ws);
}