From d8035fe173d87b319d85fcd64192a6d4fb5555e5 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Sun, 28 Aug 2011 01:05:22 +0200 Subject: nv50: fix screen->blitctx memory leak --- src/gallium/drivers/nv50/nv50_screen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/nv50/nv50_screen.c') 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); -- cgit v1.2.3