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:
530455f
)
test_gesture_layer3: add null checking after memory allocation
author
Jaeun Choi
<jaeun12.choi@samsung.com>
Wed, 9 Aug 2017 07:07:51 +0000
(16:07 +0900)
committer
Jaeun Choi
<jaeun12.choi@samsung.com>
Wed, 9 Aug 2017 07:07:51 +0000
(16:07 +0900)
src/bin/elementary/test_gesture_layer3.c
patch
|
blob
|
history
diff --git
a/src/bin/elementary/test_gesture_layer3.c
b/src/bin/elementary/test_gesture_layer3.c
index
9608d61
..
1029087
100644
(file)
--- a/
src/bin/elementary/test_gesture_layer3.c
+++ b/
src/bin/elementary/test_gesture_layer3.c
@@
-473,6
+473,8
@@
photo_object_add(Evas_Object *parent, Evas_Object *ic, const char *icon,
char buf[PATH_MAX];
Photo_Object *po;
po = calloc(1, sizeof(*po));
+ if (!po) return NULL;
+
po->base_zoom = po->zoom = BASE_ZOOM;
if (ic)
@@
-559,6
+561,7
@@
test_gesture_layer3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
int ind = 0;
Photo_Object **photo_array;
photo_array = calloc(4, sizeof(*photo_array));
+ if (!photo_array) return;
w = 480;
h = 800;