diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-06-01 20:15:28 -0700 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-06-01 20:35:38 -0700 |
commit | 003cfd4dd2491675058c53a8f59553f2443be349 (patch) | |
tree | 09c001745dd628b24014f26d0583c4bde9e32b57 /src/gallium/auxiliary/draw/draw_pipe_aaline.c | |
parent | 69a765df1c3bf6acc549a5a6a047bbde16988721 (diff) |
draw: free more token arrays
The AA line and point code also needs to free token arrays after
building driver shaders.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_aaline.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_aaline.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_aaline.c b/src/gallium/auxiliary/draw/draw_pipe_aaline.c index 9fedeef2d3..0d322b0aab 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_aaline.c +++ b/src/gallium/auxiliary/draw/draw_pipe_aaline.c @@ -60,8 +60,6 @@ struct aaline_fragment_shader struct pipe_shader_state state; void *driver_fs; void *aaline_fs; - void *aapoint_fs; /* not yet */ - void *sprite_fs; /* not yet */ uint sampler_unit; int generic_attrib; /**< texcoord/generic used for texture */ }; @@ -373,10 +371,15 @@ generate_aaline_fs(struct aaline_stage *aaline) aaline->fs->aaline_fs = aaline->driver_create_fs_state(aaline->pipe, &aaline_fs); if (aaline->fs->aaline_fs == NULL) - return FALSE; + goto fail; aaline->fs->generic_attrib = transform.maxGeneric + 1; + FREE((void *)aaline_fs.tokens); return TRUE; + +fail: + FREE((void *)aaline_fs.tokens); + return FALSE; } |