projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76699ce
)
e_comp: fix null pointer dereference
19/49319/2
author
Gwanglim Lee
<gl77.lee@samsung.com>
Mon, 12 Oct 2015 12:48:10 +0000
(21:48 +0900)
committer
Gwanglim Lee
<gl77.lee@samsung.com>
Tue, 13 Oct 2015 00:29:36 +0000
(17:29 -0700)
Change-Id: I86787ac810e73132a701bad217aa405b4e08fb0b
src/bin/e_pixmap.c
patch
|
blob
|
history
diff --git
a/src/bin/e_pixmap.c
b/src/bin/e_pixmap.c
index 6e4d55f363b7f2893c39299000b74d6f810bd2c7..703b2df956c2284f41d05e93d96fbecf5f59287a 100644
(file)
--- a/
src/bin/e_pixmap.c
+++ b/
src/bin/e_pixmap.c
@@
-202,6
+202,11
@@
_e_pixmap_new(E_Pixmap_Type type)
cp->dirty = 1;
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
cp->cdata = E_NEW(E_Comp_Wl_Client_Data, 1);
+ if (!cp->cdata)
+ {
+ E_FREE(cp);
+ return NULL;
+ }
cp->cdata->pending.buffer_viewport.buffer.transform = WL_OUTPUT_TRANSFORM_NORMAL;
cp->cdata->pending.buffer_viewport.buffer.scale = 1;
cp->cdata->pending.buffer_viewport.buffer.src_width = wl_fixed_from_int(-1);