mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
glslang_read_shader_file - potential leak here
This commit is contained in:
parent
b282125107
commit
faa55b4dff
@ -93,7 +93,7 @@ bool glslang_read_shader_file(const char *path, vector<string> *output, bool roo
|
|||||||
if (strstr(lines[0], "#version ") != lines[0])
|
if (strstr(lines[0], "#version ") != lines[0])
|
||||||
{
|
{
|
||||||
RARCH_ERR("First line of the shader must contain a valid #version string.\n");
|
RARCH_ERR("First line of the shader must contain a valid #version string.\n");
|
||||||
return false;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
output->push_back(lines[0]);
|
output->push_back(lines[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user