summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_context.c
diff options
context:
space:
mode:
authorMarcin Slusarz <[email protected]>2012-06-05 23:26:05 +0200
committerMarcin Slusarz <[email protected]>2012-06-05 23:58:43 +0200
commit17e047242e82111859eb8220369c601c79a26350 (patch)
tree55f96793192a87f0d0e998abaf3bd2845ecbbc1c /src/gallium/drivers/nv30/nv30_context.c
parent3232a86efe76df9fcee869c4ed4af8d68824920c (diff)
nouveau: fix scratch buffer leak
...and create common function for destroying nouveau_context
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_context.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c
index b16cb237873..42e844f141e 100644
--- a/src/gallium/drivers/nv30/nv30_context.c
+++ b/src/gallium/drivers/nv30/nv30_context.c
@@ -92,7 +92,7 @@ nv30_context_destroy(struct pipe_context *pipe)
if (nv30->screen->cur_ctx == nv30)
nv30->screen->cur_ctx = NULL;
- FREE(nv30);
+ nouveau_context_destroy(&nv30->base);
}
#define FAIL_CONTEXT_INIT(str, err) \