mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] egl: fix potential resource leak
This commit is contained in:
parent
55fa5cc851
commit
ee5c02f72a
@ -43,6 +43,7 @@ bool egl_framebufferInit(EGL_Framebuffer ** fb)
|
|||||||
if (!egl_textureInit(&this->tex, NULL, EGL_TEXTYPE_BUFFER))
|
if (!egl_textureInit(&this->tex, NULL, EGL_TEXTYPE_BUFFER))
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Failed to initialize the texture");
|
DEBUG_ERROR("Failed to initialize the texture");
|
||||||
|
free(this);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user