Mesa (master): nv30: avoid leaking blit fp/vp

Ilia Mirkin imirkin at kemper.freedesktop.org
Mon Jun 29 04:48:28 UTC 2015


Module: Mesa
Branch: master
Commit: 61912036d1cb67e52b1cc191bdff8ebded439e8c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=61912036d1cb67e52b1cc191bdff8ebded439e8c

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Mon Jun 29 00:23:55 2015 -0400

nv30: avoid leaking blit fp/vp

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nv30/nv30_context.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/nouveau/nv30/nv30_context.c b/src/gallium/drivers/nouveau/nv30/nv30_context.c
index 617b088..ef035e5 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;
 




More information about the mesa-commit mailing list