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

@@ -819,6 +819,7 @@ st_destroy_bitmap(struct st_context *st)
cso_delete_vertex_shader(st->cso_context, st->bitmap.vs);
st->bitmap.vs = NULL;
}
util_free_shader(&st->bitmap.vert_shader);
if (st->bitmap.vbuf) {
pipe_buffer_reference(pipe->screen, &st->bitmap.vbuf, NULL);