diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2018-04-11 10:38:21 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2018-05-24 16:02:17 -0700 |
commit | ccb5642eb9c122deac271da5f8b1353f46d73160 (patch) | |
tree | 9a0a93692425677f4853a6f1b8dadd6ee430c5ec /src/lib/ecore_con/efl_net_ssl_context.c | |
parent | 36f8a70041a8a16249a07d5b7131d57a8a6ea95b (diff) |
Revert "efl_add_ref - fis to use efl_add properly with a parent."
This reverts commit 2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4.
Most of this change where wrong as they didn't affect the destruction
of the object. efl_add_ref allow for manual handling of the lifecycle
of the object and make sure it is still alive during destructor. efl_add
will not allow you to access an object after invalidate also efl.parent.get
will always return NULL once the object is invalidated.
Differential Revision: https://phab.enlightenment.org/D6062
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_con/efl_net_ssl_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_con/efl_net_ssl_context.c b/src/lib/ecore_con/efl_net_ssl_context.c index 62de44ddc6..e1bc09095f 100644 --- a/src/lib/ecore_con/efl_net_ssl_context.c +++ b/src/lib/ecore_con/efl_net_ssl_context.c | |||
@@ -361,7 +361,7 @@ _efl_net_ssl_context_default_dialer_get(const Efl_Class *klass, void *pd EINA_UN | |||
361 | { | 361 | { |
362 | if (!_efl_net_ssl_context_default_dialer) | 362 | if (!_efl_net_ssl_context_default_dialer) |
363 | { | 363 | { |
364 | _efl_net_ssl_context_default_dialer = efl_add_ref(klass, NULL, | 364 | _efl_net_ssl_context_default_dialer = efl_add(klass, efl_main_loop_get(), |
365 | efl_net_ssl_context_verify_mode_set(efl_added, EFL_NET_SSL_VERIFY_MODE_REQUIRED), | 365 | efl_net_ssl_context_verify_mode_set(efl_added, EFL_NET_SSL_VERIFY_MODE_REQUIRED), |
366 | efl_net_ssl_context_hostname_verify_set(efl_added, EINA_TRUE), | 366 | efl_net_ssl_context_hostname_verify_set(efl_added, EINA_TRUE), |
367 | efl_net_ssl_context_default_paths_load_set(efl_added, EINA_TRUE), | 367 | efl_net_ssl_context_default_paths_load_set(efl_added, EINA_TRUE), |