[Nouveau] [PATCH] nv50: fix screen->blitctx memory leak

Marcin Slusarz marcin.slusarz at gmail.com
Tue Sep 6 16:07:19 PDT 2011


---
 src/gallium/drivers/nv50/nv50_screen.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 235cd82..36adb44 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -226,6 +226,7 @@ nv50_screen_destroy(struct pipe_screen *pscreen)
       nouveau_fence_ref (NULL, &screen->base.fence.current);
    }
    screen->base.channel->user_private = NULL;
+   FREE(screen->blitctx);
 
    nouveau_bo_ref(NULL, &screen->code);
    nouveau_bo_ref(NULL, &screen->tls_bo);
-- 
1.7.6.1



More information about the Nouveau mailing list