cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=945447d1f8531ea4d9e744d7c46427b0a4cb0ca8
commit 945447d1f8531ea4d9e744d7c46427b0a4cb0ca8 Author: Cedric BAIL <cedric.b...@free.fr> Date: Thu Aug 15 20:41:58 2019 -0700 elementary: properly refcount the key of the hash used by Efl.Ui.Layout_Factory property bind. Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9578 --- src/lib/elementary/efl_ui_layout_factory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/efl_ui_layout_factory.c b/src/lib/elementary/efl_ui_layout_factory.c index 709a31fc85..310bc5224a 100644 --- a/src/lib/elementary/efl_ui_layout_factory.c +++ b/src/lib/elementary/efl_ui_layout_factory.c @@ -139,6 +139,7 @@ _efl_ui_layout_factory_efl_ui_property_bind_property_bind(Eo *obj EINA_UNUSED, E ss_prop = eina_stringshare_add(property); ss_old = eina_hash_set(pd->bind.properties, ss_key, ss_prop); if (ss_old) eina_stringshare_del(ss_old); + else ss_key = NULL; // Prevent destruction of key to keep at least one reference end: efl_event_callback_call(obj, EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND, (void*) ss_key); --