glslang_read_shader_file - potential leak here

This commit is contained in:
twinaphex 2019-08-08 16:55:39 +02:00
parent b282125107
commit faa55b4dff

View File

@ -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]);