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

Author: Thomas Hellstrom <thellst...@vmware.com>
Date:   Mon Oct 31 14:01:39 2011 +0100

st/xa: Plug a pipe context leak.

Forgot to destroy the pipe context on xa context destroy.

Signed-off-by: Thomas Hellstrom <thellst...@vmware.com>
Reviewed-by: José Fonseca <jfons...@vmware.com>

---

 src/gallium/state_trackers/xa/xa_context.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/xa/xa_context.c 
b/src/gallium/state_trackers/xa/xa_context.c
index 1d918de..b52ee27 100644
--- a/src/gallium/state_trackers/xa/xa_context.c
+++ b/src/gallium/state_trackers/xa/xa_context.c
@@ -79,6 +79,8 @@ xa_context_destroy(struct xa_context *r)
        cso_destroy_context(r->cso);
        r->cso = NULL;
     }
+
+    r->pipe->destroy(r->pipe);
 }
 
 int

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to