forked from enlightenment/efl
evas: remove logically dead code.
CID 1211984. Note that in error case, the calloc is either not passed or returned NULL so free will never be called.
This commit is contained in:
parent
7c1679550b
commit
6a3913b41e
|
@ -484,7 +484,6 @@ e3d_drawable_new(int w, int h, int alpha, GLenum depth_format, GLenum stencil_fo
|
|||
goto error;
|
||||
|
||||
drawable = (E3D_Drawable *)calloc(1, sizeof(E3D_Drawable));
|
||||
|
||||
if (drawable == NULL)
|
||||
goto error;
|
||||
|
||||
|
@ -531,9 +530,6 @@ error:
|
|||
if (stencil_buf)
|
||||
glDeleteRenderbuffers(1, &stencil_buf);
|
||||
|
||||
if (drawable)
|
||||
free(drawable);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue