mesa: Free the util shaders with the gallium's FREE.

This commit is contained in:
José Fonseca
2009-02-19 13:02:47 +00:00
parent b9c5e41688
commit 85b0c171c0
5 changed files with 15 additions and 3 deletions

View File

@@ -98,12 +98,12 @@ st_destroy_clear(struct st_context *st)
struct pipe_context *pipe = st->pipe;
if (st->clear.vert_shader.tokens) {
_mesa_free((void *) st->clear.vert_shader.tokens);
util_free_shader(&st->clear.vert_shader);
st->clear.vert_shader.tokens = NULL;
}
if (st->clear.frag_shader.tokens) {
_mesa_free((void *) st->clear.frag_shader.tokens);
util_free_shader(&st->clear.frag_shader);
st->clear.frag_shader.tokens = NULL;
}