From: José Fonseca Date: Tue, 21 Sep 2010 16:51:06 +0000 (+0100) Subject: llvmpipe: When failing free fs shader too. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b556bb7c44236a9fae54f58cc03e1d05eaa2124f;p=mesa.git llvmpipe: When failing free fs shader too. --- 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; }