From b556bb7c44236a9fae54f58cc03e1d05eaa2124f Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 21 Sep 2010 17:51:06 +0100 Subject: llvmpipe: When failing free fs shader too. --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium') diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index fb673db6d0f..4277c47eeb6 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -906,6 +906,7 @@ llvmpipe_create_fs_state(struct pipe_context *pipe, shader->draw_data = draw_create_fragment_shader(llvmpipe->draw, templ); if (shader->draw_data == NULL) { FREE((void *) shader->base.tokens); + FREE(shader); return NULL; } -- cgit v1.2.3