[Issue#]
[Problem]
[Cause] Definitely lost recorded in valgrind
[Solution]
glctx_list = current->next;
nextitm = glctx_list;
}
+ if (current->option != NULL)
+ {
+ AST(current->option_len > 0);
+ free(current->option);
+ current->option = NULL;
+ current->option_len = 0;
+ }
free(current);
ret = 1;
current = nextitm;
int i;
for (i = 0; i < poat->shader_count; i++)
{
- GLuint glue_shader = fastpath_sostate_find_object(sostate, GL_OBJECT_TYPE_PROGRAM, poat->shaders[i]);
- fastpath_sostate_remove_object(sostate, GL_OBJECT_TYPE_PROGRAM, glue_shader);
+ AST(is_program == 1);
+ _detach_program_object(sostate, poat->shaders[i], 0, 0);
}
- poat = NULL;
free(poat);
+ poat = NULL;
if (is_program == 1)
_orig_fastpath_glDeleteProgram(real_object);