aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarcin Slusarz <[email protected]>2011-08-28 01:05:22 +0200
committerMarcin Slusarz <[email protected]>2011-09-08 23:00:31 +0200
commitd8035fe173d87b319d85fcd64192a6d4fb5555e5 (patch)
tree5d05935009fd2d1085480d2c73b556f9bccc79a5 /src/gallium
parentfaf5d6584b9d75a10987c4460b376af7d1e4d496 (diff)
nv50: fix screen->blitctx memory leak
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv50/nv50_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 235cd82c643..aa791ae7ede 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -226,6 +226,8 @@ nv50_screen_destroy(struct pipe_screen *pscreen)
nouveau_fence_ref (NULL, &screen->base.fence.current);
}
screen->base.channel->user_private = NULL;
+ if (screen->blitctx)
+ FREE(screen->blitctx);
nouveau_bo_ref(NULL, &screen->code);
nouveau_bo_ref(NULL, &screen->tls_bo);