st/mesa: free TGSI tokens with ureg_free_tokens()
authorBrian Paul <brianp@vmware.com>
Fri, 19 Oct 2012 21:34:55 +0000 (15:34 -0600)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:26 +0000 (15:08 +0100)
since they're allocated by ureg_get_tokens().

NOTE: This is a candidate for the 8.0 and 9.0 branches.

(cherry picked from commit 11070105f0b5ad20f12bb40a8dd0b357924bcfdd)

src/mesa/state_tracker/st_mesa_to_tgsi.c

index 04f3f5c..3cbdc71 100644 (file)
@@ -1272,5 +1272,5 @@ out:
 void
 st_free_tokens(const struct tgsi_token *tokens)
 {
-   FREE((void *)tokens);
+   ureg_free_tokens(tokens);
 }