gallium: fix mem leaks
This commit is contained in:
@@ -97,6 +97,16 @@ st_destroy_clear(struct st_context *st)
|
|||||||
{
|
{
|
||||||
struct pipe_context *pipe = st->pipe;
|
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) {
|
if (st->clear.fs) {
|
||||||
cso_delete_fragment_shader(st->cso_context, st->clear.fs);
|
cso_delete_fragment_shader(st->cso_context, st->clear.fs);
|
||||||
st->clear.fs = NULL;
|
st->clear.fs = NULL;
|
||||||
|
Reference in New Issue
Block a user