aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/edje/edje_calc.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-09-28 11:30:28 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-09-28 15:28:00 +0900
commit22466b991cfa462e48392a0cc517cbb805fbfda9 (patch)
tree383b1ba57e911b5f1f978c9a4ab047ffe8219a17 /src/lib/edje/edje_calc.c
parentefl ui text - fix resource leak of strbuf and pointless buffer code (diff)
downloadefl-22466b991cfa462e48392a0cc517cbb805fbfda9.tar.gz
edje - fix check return of _edje_fetch
fixes CID 1381326
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_calc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 1500ab0e8e..3902ac4c2e 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -840,11 +840,12 @@ _edje_part_description_apply(Edje *ed, Edje_Real_Part *ep, const char *d1, doubl
(((pmin->w == pmax->w) && (pmin->h == pmax->h) && (pmin->w > 0) && (pmin->h > 0)) &&
(((min->w != max->w) || (min->h != max->h) || (min->w <= 0) || (min->h <= 0)))))
{
- Edje *ted;
-
- ted = _edje_fetch(ep->typedata.swallow->swallowed_object);
- ted->recalc_call = ted->dirty = ted->recalc_hints = EINA_TRUE;
- _edje_recalc(ted);
+ Edje *ted = _edje_fetch(ep->typedata.swallow->swallowed_object);
+ if (ted)
+ {
+ ted->recalc_call = ted->dirty = ted->recalc_hints = EINA_TRUE;
+ _edje_recalc(ted);
+ }
}
edje_object_mirrored_set(ep->typedata.swallow->swallowed_object,