OpenGL: Fix memory leak in failure path

This commit is contained in:
Vicki Pfau 2023-03-01 16:08:56 -08:00
parent 9132859b6f
commit c13e2a822e
1 changed files with 1 additions and 0 deletions

View File

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