diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-24 13:09:26 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-24 13:09:26 +0900 |
commit | 92fb46fb505d1e094811038d0abbe33805d52f33 (patch) | |
tree | 3029ea7603cb26b8643797061185aa8a972f550e | |
parent | 4b4564c85776edafde9ae6407a3abc7a67910cf6 (diff) | |
download | efl-92fb46fb505d1e094811038d0abbe33805d52f33.tar.gz |
edje convert - make realloc fatal and complain about it
cleaner error handling
-rw-r--r-- | src/bin/edje/edje_convert.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/edje/edje_convert.c b/src/bin/edje/edje_convert.c index 1a304a138d..eb113a7fee 100644 --- a/src/bin/edje/edje_convert.c +++ b/src/bin/edje/edje_convert.c @@ -192,7 +192,11 @@ _edje_collection_program_add(Edje_Program ***array, Edje_Program **tmp; tmp = realloc(*array, sizeof (Edje_Program*) * (*count + 1)); - if (!tmp) return; + if (!tmp) + { + error_and_abort(ef, "Not enough memory"); + return; + } tmp[(*count)++] = add; *array = tmp; |