nv50: fix screen->blitctx memory leak
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sat, 27 Aug 2011 23:05:22 +0000 (01:05 +0200)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Thu, 8 Sep 2011 21:00:31 +0000 (23:00 +0200)
src/gallium/drivers/nv50/nv50_screen.c

index 235cd82c6433b4c784a8ed2cda6136d43412b089..aa791ae7ede638aa80d569ca123d13044241ce3e 100644 (file)
@@ -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);