diff options
author | Cedric BAIL <cedric.bail@free.fr> | 2019-08-15 20:41:58 -0700 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2019-08-19 15:25:19 -0700 |
commit | 945447d1f8531ea4d9e744d7c46427b0a4cb0ca8 (patch) | |
tree | 9146d0d5d3d6568c564bb0fc5919db99ef40788f | |
parent | e08ca174888da9d11742e2b08501a1449ebe5b7d (diff) | |
download | efl-945447d1f8531ea4d9e744d7c46427b0a4cb0ca8.tar.gz |
elementary: properly refcount the key of the hash used by Efl.Ui.Layout_Factory property bind.
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9578
-rw-r--r-- | src/lib/elementary/efl_ui_layout_factory.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |