projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eabba1
)
genlist: use ELM_NEW
author
ChunEon Park
<hermet@hermet.pe.kr>
Mon, 5 Jan 2015 06:55:39 +0000
(15:55 +0900)
committer
ChunEon Park
<hermet@hermet.pe.kr>
Mon, 5 Jan 2015 06:55:39 +0000
(15:55 +0900)
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index 4601dc4d7080b45bc89945d87c70ff95cc0f8b6c..559b2cc6efa1d401ebccd5dbab864fc9f7c94947 100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-7497,11
+7497,8
@@
_elm_genlist_item_type_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
EAPI Elm_Genlist_Item_Class *
elm_genlist_item_class_new(void)
{
- Elm_Genlist_Item_Class *itc;
-
- itc = calloc(1, sizeof(Elm_Genlist_Item_Class));
- if (!itc)
- return NULL;
+ Elm_Genlist_Item_Class *itc = ELM_NEW(Elm_Genlist_Item_Class);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(itc, NULL);
itc->version = CLASS_ALLOCATED;
itc->refcount = 1;