From: Chia-I Wu Date: Wed, 30 Jun 2010 06:42:00 +0000 (+0800) Subject: st/vega: Match MALLOC/FREE for vg_shader. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d8e70fcd57b23786e3f4196f35440ed1861a98b;p=mesa.git st/vega: Match MALLOC/FREE for vg_shader. A vg_shader is destroyed with FREE. --- diff --git a/src/gallium/state_trackers/vega/shaders_cache.c b/src/gallium/state_trackers/vega/shaders_cache.c index b907a609b3c..53e6bfcf16b 100644 --- a/src/gallium/state_trackers/vega/shaders_cache.c +++ b/src/gallium/state_trackers/vega/shaders_cache.c @@ -410,7 +410,7 @@ struct vg_shader * shader_create_from_text(struct pipe_context *pipe, const char *txt, int num_tokens, int type) { - struct vg_shader *shader = (struct vg_shader *)malloc( + struct vg_shader *shader = (struct vg_shader *)MALLOC( sizeof(struct vg_shader)); struct tgsi_token *tokens = tokens_from_assembly(txt, num_tokens); struct pipe_shader_state state;