projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c16795
)
evas: remove logically dead code.
author
Cedric Bail
<cedric.bail@free.fr>
Sat, 10 May 2014 11:18:55 +0000
(13:18 +0200)
committer
Cedric 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
patch
|
blob
|
history
diff --git
a/src/modules/evas/engines/gl_common/evas_gl_3d.c
b/src/modules/evas/engines/gl_common/evas_gl_3d.c
index 1265efe273761ca226c94631bc58d48c357b7c9a..3a746b639fddab3d4be0a21bfa5b4e5226398253 100644
(file)
--- a/
src/modules/evas/engines/gl_common/evas_gl_3d.c
+++ b/
src/modules/evas/engines/gl_common/evas_gl_3d.c
@@
-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;
}