[client] egl: fix potential resource leak

This commit is contained in:
Geoffrey McRae 2023-11-11 11:45:25 +11:00
parent 55fa5cc851
commit ee5c02f72a

View File

@ -43,6 +43,7 @@ bool egl_framebufferInit(EGL_Framebuffer ** fb)
if (!egl_textureInit(&this->tex, NULL, EGL_TEXTYPE_BUFFER))
{
DEBUG_ERROR("Failed to initialize the texture");
free(this);
return false;
}