[client] egl: fix potential resource leak

This commit is contained in:
Geoffrey McRae committed 2023-11-11 13:48:41 +11:00
1 parent 55fa5cc851
commit ee5c02f72a
1 file changed
+1
+1
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;
}