OpenGL: Fix memory leak in failure path

This commit is contained in:
Vicki Pfau 2023-03-01 16:08:56 -08:00
parent 2cce155173
commit 7ffa0ff280
1 changed files with 1 additions and 0 deletions

View File

@ -1053,6 +1053,7 @@ bool mGLES2ShaderLoad(struct VideoShader* shader, struct VDir* dir) {
for (n = 0; n < inShaders; ++n) {
mGLES2ShaderDeinit(&shaderBlock[n]);
}
free(shaderBlock);
}
}
}