projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90fb86
)
tgsi: free tokens on error
author
Keith Whitwell
<keithw@vmware.com>
Sat, 12 Sep 2009 21:07:48 +0000
(14:07 -0700)
committer
Keith Whitwell
<keithw@vmware.com>
Sat, 12 Sep 2009 21:07:48 +0000
(14:07 -0700)
src/gallium/auxiliary/tgsi/tgsi_ureg.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 0780e2e06357f16954b8ee58fc3c645e540f7b72..e24a0ad776e8f82a79b3799869bfc2a779c56b7a 100644
(file)
--- a/
src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/
src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@
-120,6
+120,9
@@
static union tgsi_any_token error_tokens[32];
static void tokens_error( struct ureg_tokens *tokens )
{
+ if (tokens->tokens && tokens->tokens != error_tokens)
+ FREE(tokens->tokens);
+
tokens->tokens = error_tokens;
tokens->size = Elements(error_tokens);
tokens->count = 0;