mirror of https://github.com/mgba-emu/mgba.git
OpenGL: Fix memory leak in failure path
This commit is contained in:
parent
2cce155173
commit
7ffa0ff280
|
@ -1053,6 +1053,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