OSDN Git Service

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 1d918de..b52ee27 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