mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 14:28:05 +02:00
st/mesa: fix memory leaks
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
33ca21fc3c
commit
245edfb005
1 changed files with 2 additions and 2 deletions
|
|
@ -1638,9 +1638,9 @@ st_destroy_drawpix(struct st_context *st)
|
|||
|
||||
st_reference_fragprog(st, &st->pixel_xfer.combined_prog, NULL);
|
||||
if (st->drawpix.vert_shaders[0])
|
||||
ureg_free_tokens(st->drawpix.vert_shaders[0]);
|
||||
cso_delete_vertex_shader(st->cso_context, st->drawpix.vert_shaders[0]);
|
||||
if (st->drawpix.vert_shaders[1])
|
||||
ureg_free_tokens(st->drawpix.vert_shaders[1]);
|
||||
cso_delete_vertex_shader(st->cso_context, st->drawpix.vert_shaders[1]);
|
||||
}
|
||||
|
||||
#endif /* FEATURE_drawpix */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue