Mesa (master): st/vega: Match MALLOC/FREE for vg_shader.

Chia-I Wu olv at kemper.freedesktop.org
Wed Jun 30 03:33:26 PDT 2010


Module: Mesa
Branch: master
Commit: 2d8e70fcd57b23786e3f4196f35440ed1861a98b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d8e70fcd57b23786e3f4196f35440ed1861a98b

Author: Chia-I Wu <olv at lunarg.com>
Date:   Wed Jun 30 14:42:00 2010 +0800

st/vega: Match MALLOC/FREE for vg_shader.

A vg_shader is destroyed with FREE.

---

 src/gallium/state_trackers/vega/shaders_cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/vega/shaders_cache.c b/src/gallium/state_trackers/vega/shaders_cache.c
index b907a60..53e6bfc 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;



More information about the mesa-commit mailing list