projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb93439
)
st/mesa: free TGSI tokens with ureg_free_tokens()
author
Brian Paul
<brianp@vmware.com>
Fri, 19 Oct 2012 21:34:55 +0000
(15:34 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 22 Oct 2012 21:49:31 +0000
(15:49 -0600)
since they're allocated by ureg_get_tokens().
NOTE: This is a candidate for the 8.0 and 9.0 branches.
src/mesa/state_tracker/st_mesa_to_tgsi.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_mesa_to_tgsi.c
b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index e0f08804d9d4308b0b1fba65aba1f5a883599004..0acab4340a0466677e429f39c2698e74b9ae474f 100644
(file)
--- a/
src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/
src/mesa/state_tracker/st_mesa_to_tgsi.c
@@
-1259,5
+1259,5
@@
out:
void
st_free_tokens(const struct tgsi_token *tokens)
{
-
free((void *)
tokens);
+
ureg_free_tokens(
tokens);
}