mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
tgsi: free tokens on error
This commit is contained in:
parent
e90fb86ac3
commit
149945c432
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue