From: Ilia Mirkin Date: Mon, 29 Jun 2015 04:23:55 +0000 (-0400) Subject: nv30: avoid leaking blit fp/vp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61912036d1cb67e52b1cc191bdff8ebded439e8c;p=mesa.git nv30: avoid leaking blit fp/vp Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/nv30/nv30_context.c b/src/gallium/drivers/nouveau/nv30/nv30_context.c index 617b0887810..ef035e58f3c 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_context.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_context.c @@ -165,6 +165,12 @@ nv30_context_destroy(struct pipe_context *pipe) if (nv30->draw) draw_destroy(nv30->draw); + if (nv30->blit_vp) + nouveau_heap_free(&nv30->blit_vp); + + if (nv30->blit_fp) + pipe_resource_reference(&nv30->blit_fp, NULL); + if (nv30->screen->base.pushbuf->user_priv == &nv30->bufctx) nv30->screen->base.pushbuf->user_priv = NULL;