mirror of https://github.com/mgba-emu/mgba.git
OpenGL: Fix memory leak in failure path
This commit is contained in:
parent
9132859b6f
commit
c13e2a822e
|
@ -1051,6 +1051,7 @@ bool mGLES2ShaderLoad(struct VideoShader* shader, struct VDir* dir) {
|
||||||
for (n = 0; n < inShaders; ++n) {
|
for (n = 0; n < inShaders; ++n) {
|
||||||
mGLES2ShaderDeinit(&shaderBlock[n]);
|
mGLES2ShaderDeinit(&shaderBlock[n]);
|
||||||
}
|
}
|
||||||
|
free(shaderBlock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue