summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2019-02-13 19:38:48 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2019-02-13 19:41:29 +0900
commitbad145f313451c47a3b67d1b6ca1b6e36469e654 (patch)
tree1534e4b38069c30c2be7b253112f3a76e6045c7b
parentf4e5d32107aa8dd3c42574819cd47032251d8bf8 (diff)
edje: add missing NULL checks
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index 4f27839066..f5e80ce151 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -2039,6 +2039,7 @@ _edje_user_text_style_definition_fetch(Edje *ed, const char *part)
2039 if (!eud) 2039 if (!eud)
2040 { 2040 {
2041 eud = _edje_user_definition_new(EDJE_USER_TEXT_STYLE, part, ed); 2041 eud = _edje_user_definition_new(EDJE_USER_TEXT_STYLE, part, ed);
2042 if (!eud) return NULL;
2042 eud->u.text_style.types = EDJE_PART_TEXT_PROP_NONE; 2043 eud->u.text_style.types = EDJE_PART_TEXT_PROP_NONE;
2043 eud->u.text_style.props = NULL; 2044 eud->u.text_style.props = NULL;
2044 } 2045 }
@@ -2063,6 +2064,7 @@ _edje_user_text_expand_definition_fetch(Edje *ed, const char *part)
2063 if (!eud) 2064 if (!eud)
2064 { 2065 {
2065 eud = _edje_user_definition_new(EDJE_USER_TEXT_EXPAND, part, ed); 2066 eud = _edje_user_definition_new(EDJE_USER_TEXT_EXPAND, part, ed);
2067 if (!eud) return NULL;
2066 eud->u.text_expand.expand = EFL_CANVAS_LAYOUT_PART_TEXT_EXPAND_NONE; 2068 eud->u.text_expand.expand = EFL_CANVAS_LAYOUT_PART_TEXT_EXPAND_NONE;
2067 } 2069 }
2068 2070