Commit f60a8783 authored by Niklas Haas's avatar Niklas Haas
Browse files

demos/plplay: fix use-after-free edge case

parent 47a1ba44
......@@ -936,7 +936,8 @@ static void update_settings(struct plplay *p)
(p->shader_num - i) * sizeof(char *));
}
nk_label(nk, p->shader_paths[i], NK_TEXT_LEFT);
if (i < p->shader_num)
nk_label(nk, p->shader_paths[i], NK_TEXT_LEFT);
}
par->hooks = p->shader_hooks;
......
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