mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 18:54:02 +00:00
[client] egl: check for null before free
This commit is contained in:
@@ -79,6 +79,8 @@ bool egl_textureInit(EGL_Texture ** texture_, EGLDisplay * display,
|
||||
void egl_textureFree(EGL_Texture ** tex)
|
||||
{
|
||||
EGL_Texture * this = *tex;
|
||||
if (!this)
|
||||
return;
|
||||
|
||||
glDeleteSamplers(1, &this->sampler);
|
||||
|
||||
|
Reference in New Issue
Block a user