Page MenuHomePhabricator

efl_mono: add a free function to every owned type
ClosedPublic

Authored by bu5hm4n on Jan 21 2019, 6:07 AM.

Details

Summary

this is another step towards enforcing free functions on every owned
type. To equip every owned type with a free function the following is
applied. Every owned ptr is assumed to be a heap pointer, with the free
function "free". Every string that is owed is converted to a mstring. a
pointer to a eo object is also assumed to be a heap pointer, and equiped
with the free function "free".

Depends on D7641

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bu5hm4n created this revision.Jan 21 2019, 6:07 AM

It seems that this patch has no reviewers specified. If you are unsure who can review your patch, please check this wiki page and see if anyone can be added: https://phab.enlightenment.org/w/maintainers_reviewers/

@lauromoura @felipealmeida @vitor.sousa

This patch makes efl_mono fail, it seems that something wrong is happening there, and owned content of eina_list is freed, even though it should not be freed.

bu5hm4n updated this revision to Diff 18702.Jan 23 2019, 3:50 AM
bu5hm4n edited the summary of this revision. (Show Details)

i did a wrong change :(

lauromoura accepted this revision.Jan 23 2019, 4:59 AM
This revision is now accepted and ready to land.Jan 23 2019, 4:59 AM
Closed by commit rEFL286ad910754c: efl_mono: add a free function to every owned type (authored by Marcel Hollerbach <mail@marcel-hollerbach.de>). · Explain WhyJan 23 2019, 5:14 AM
This revision was automatically updated to reflect the committed changes.