mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
gallium: fix mem leaks
This commit is contained in:
parent
d7cf6b2978
commit
4b4ac9ed34
1 changed files with 10 additions and 0 deletions
|
|
@ -97,6 +97,16 @@ st_destroy_clear(struct st_context *st)
|
|||
{
|
||||
struct pipe_context *pipe = st->pipe;
|
||||
|
||||
if (st->clear.vert_shader.tokens) {
|
||||
FREE((void *) st->clear.vert_shader.tokens);
|
||||
st->clear.vert_shader.tokens = NULL;
|
||||
}
|
||||
|
||||
if (st->clear.frag_shader.tokens) {
|
||||
FREE((void *) st->clear.frag_shader.tokens);
|
||||
st->clear.frag_shader.tokens = NULL;
|
||||
}
|
||||
|
||||
if (st->clear.fs) {
|
||||
cso_delete_fragment_shader(st->cso_context, st->clear.fs);
|
||||
st->clear.fs = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue