evas: remove logically dead code.
authorCedric Bail <cedric.bail@free.fr>
Sat, 10 May 2014 11:18:55 +0000 (13:18 +0200)
committerCedric Bail <cedric.bail@free.fr>
Sat, 10 May 2014 11:18:55 +0000 (13:18 +0200)
CID 1211984.

Note that in error case, the calloc is either not passed or
returned NULL so free will never be called.

src/modules/evas/engines/gl_common/evas_gl_3d.c

index 1265efe..3a746b6 100644 (file)
@@ -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;
 }