From: Brian Paul Date: Fri, 19 Oct 2012 21:34:55 +0000 (-0600) Subject: st/mesa: free TGSI tokens with ureg_free_tokens() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11070105f0b5ad20f12bb40a8dd0b357924bcfdd;p=mesa.git st/mesa: free TGSI tokens with ureg_free_tokens() since they're allocated by ureg_get_tokens(). NOTE: This is a candidate for the 8.0 and 9.0 branches. --- diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index e0f08804d9d..0acab4340a0 100644 --- 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); }