summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-01 16:20:26 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:18 -0700
commite46369a5697834f29d443ae86a99eaefee76f764 (patch)
treec2b94370143c68c226403a01202c6515c67a76e6 /src/lib/ecore_con
parent67e48c679d2a52b7ed580ef80e599ffb4b5431a8 (diff)
ecore_con: it is best to call the super destructor and not touch the object anymore after.
Differential Revision: https://phab.enlightenment.org/D6082
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/efl_net_ssl_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/efl_net_ssl_context.c b/src/lib/ecore_con/efl_net_ssl_context.c
index e1bc090..271cd8a 100644
--- a/src/lib/ecore_con/efl_net_ssl_context.c
+++ b/src/lib/ecore_con/efl_net_ssl_context.c
@@ -336,8 +336,6 @@ _efl_net_ssl_context_efl_object_constructor(Eo *o, Efl_Net_Ssl_Context_Data *pd)
336EOLIAN static void 336EOLIAN static void
337_efl_net_ssl_context_efl_object_destructor(Eo *o, Efl_Net_Ssl_Context_Data *pd) 337_efl_net_ssl_context_efl_object_destructor(Eo *o, Efl_Net_Ssl_Context_Data *pd)
338{ 338{
339 efl_destructor(efl_super(o, MY_CLASS));
340
341 efl_net_ssl_ctx_teardown(&pd->ssl_ctx); 339 efl_net_ssl_ctx_teardown(&pd->ssl_ctx);
342 340
343 _efl_net_ssl_context_string_list_free(&pd->certificates); 341 _efl_net_ssl_context_string_list_free(&pd->certificates);
@@ -346,6 +344,8 @@ _efl_net_ssl_context_efl_object_destructor(Eo *o, Efl_Net_Ssl_Context_Data *pd)
346 _efl_net_ssl_context_string_list_free(&pd->certificate_authorities); 344 _efl_net_ssl_context_string_list_free(&pd->certificate_authorities);
347 345
348 eina_stringshare_replace(&pd->hostname, NULL); 346 eina_stringshare_replace(&pd->hostname, NULL);
347
348 efl_destructor(efl_super(o, MY_CLASS));
349} 349}
350 350
351static Efl_Net_Ssl_Context *_efl_net_ssl_context_default_dialer = NULL; 351static Efl_Net_Ssl_Context *_efl_net_ssl_context_default_dialer = NULL;