From 17e047242e82111859eb8220369c601c79a26350 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Tue, 5 Jun 2012 23:26:05 +0200 Subject: nouveau: fix scratch buffer leak ...and create common function for destroying nouveau_context --- src/gallium/drivers/nv30/nv30_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/nv30') 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) \ -- cgit v1.2.3