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)
committerBrian 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

index e0f08804d9d4308b0b1fba65aba1f5a883599004..0acab4340a0466677e429f39c2698e74b9ae474f 100644 (file)
@@ -1259,5 +1259,5 @@ out:
 void
 st_free_tokens(const struct tgsi_token *tokens)
 {
-   free((void *)tokens);
+   ureg_free_tokens(tokens);
 }