st/xa: Plug a pipe context leak.
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 31 Oct 2011 13:01:39 +0000 (14:01 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 31 Oct 2011 13:35:23 +0000 (14:35 +0100)
Forgot to destroy the pipe context on xa context destroy.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/xa/xa_context.c

index 1d918de974f31b4dee07fe75fa1f25bbdfb1bcae..b52ee27f43e6de6bc87f5d75ca62e020e3b305a4 100644 (file)
@@ -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