eo_class_new: fix big memory waste
authorJérémy Zurcher <jeremy@asynk.ch>
Mon, 10 Jun 2013 14:19:43 +0000 (16:19 +0200)
committerJérémy Zurcher <jeremy@asynk.ch>
Mon, 10 Jun 2013 14:42:15 +0000 (16:42 +0200)
commit1f7ae48215168724d35e6c8076eba39eef47ee72
tree58b4f0ad1a1a6e35d3436172b1e51b8f14aa3087
parent4e742bf0bf7ca549d00b739cef5208962314ea33
eo_class_new: fix big memory waste

extn_data_size is not equal to extn_data_off,
current class data size and data offset must be substracted first

elementary_test bubble peak usage goes from 13.7 MiB to 12.5 MiB
src/lib/eo/eo.c