Commit e637f183 authored by Kenneth Graunke's avatar Kenneth Graunke

run: Set current_shader_names[i] to NULL before freeing it.

current_shader_names[i] is set to shader_test[i].filename.  Before we
free that, we should NULL out the pointer (also indicating the current
thread is done with this shader).  That way, the crash handler won't
print garbage when trying to list what threads were doing.
Reviewed-by: Matt Turner's avatarMatt Turner <>
parent 5dc3140a
......@@ -720,6 +720,8 @@ main(int argc, char **argv)
shaders_compiled += num_shaders;
current_shader_names[omp_get_thread_num()] = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment