aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykyta Biliavskyi <m.biliavskyi@samsung.com>2016-08-30 16:57:33 +0300
committerMykyta Biliavskyi <m.biliavskyi@samsung.com>2016-08-30 16:57:53 +0300
commitb6e2b8601df25086bfbee14b5b478d357209ec88 (patch)
tree3a6b2ce04de0e86ce542b18c5a51f922edd1348e
parentEvas engine drm: Fix style (and thus compilation warning). (diff)
downloadefl-b6e2b8601df25086bfbee14b5b478d357209ec88.tar.gz
Edje edit: allocate memory for mempools.
Just added allocations that missed in "edje - reduce another 400k or so of memory usage (esp hello world)" commit.
-rw-r--r--src/lib/edje/edje_edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index f13a1f30ac..8784864b12 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -1599,6 +1599,9 @@ edje_edit_sound_samplesource_get(Evas_Object *obj, const char *sample_name)
static void
_mempools_add(Edje_Part_Collection_Directory_Entry *de)
{
+ de->mp = calloc(1, sizeof(Edje_Part_Collection_Directory_Entry_Mp));
+ if (!de->mp)
+ return;
#define EDIT_EMN(Tp, Sz, Ce) \
Ce->mp->mp.Tp = eina_mempool_add("chained_mempool", #Tp, NULL, sizeof (Sz), 8);
#define EDIT_EMNP(Tp, Sz, Ce) \