glsl2 main: Switch from realloc to talloc_realloc to construct program source.
This closes 1 leak in the glsl-orangebook-ch06-bump.frag test leaving 4 to go, (all of which are inside hash_table.c).
This commit is contained in:
parent
b3bd77da56
commit
26bbfb7917
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
|
@ -206,8 +206,8 @@ main(int argc, char **argv)
|
|||
|
||||
for (/* empty */; argc > optind; optind++) {
|
||||
whole_program->Shaders = (struct glsl_shader **)
|
||||
realloc(whole_program->Shaders,
|
||||
sizeof(struct glsl_shader *) * (whole_program->NumShaders + 1));
|
||||
talloc_realloc(whole_program, whole_program->Shaders,
|
||||
struct glsl_shader *, whole_program->NumShaders + 1);
|
||||
assert(whole_program->Shaders != NULL);
|
||||
|
||||
struct glsl_shader *shader = talloc_zero(whole_program, glsl_shader);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue