projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a231140
)
st/vega: Match MALLOC/FREE for vg_shader.
author
Chia-I Wu
<olv@lunarg.com>
Wed, 30 Jun 2010 06:42:00 +0000
(14:42 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Wed, 30 Jun 2010 10:32:48 +0000
(18:32 +0800)
A vg_shader is destroyed with FREE.
src/gallium/state_trackers/vega/shaders_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vega/shaders_cache.c
b/src/gallium/state_trackers/vega/shaders_cache.c
index
b907a60
..
53e6bfc
100644
(file)
--- 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;