summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Armand <[email protected]>2011-11-07 19:38:32 +0100
committerBrian Paul <[email protected]>2011-11-07 13:25:46 -0700
commit245edfb0058fdb22ab31a77b18fb045be4aad178 (patch)
treebb488fe5a9e3cbc09fa4c51114a436fb35184df0
parent33ca21fc3ca78d9e93d2a750b6da3505346d2b86 (diff)
st/mesa: fix memory leaks
Signed-off-by: Brian Paul <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_cb_drawpixels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index 8c49f8d187a..5714d343d57 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -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 */