path: root/src/lib/ecore_con
diff options
authorCedric BAIL <>2015-06-03 16:12:01 +0200
committerCedric BAIL <>2015-06-03 17:14:12 +0200
commit69e44c24e3bd946390585a123c73aac9a6653709 (patch)
tree8d11db4a0057a8ef036163488625e72a37b8a7e5 /src/lib/ecore_con
parentb2c47737b1f8cfa8762b7093b5b8d598c135fb73 (diff)
ecore_con: fix error handling case.
Since the move to Eo, in case of error we do not need to cleanup anything when finalize finish. The kill function was arranged to do so, but it was still emiting an event exposing the invalid Eo object. Looking closely at the code, that should have not happened, as there was no symetrical ADD event and the function would do nothing else. So removing it. This prevent any potential SEGV from a function that would catch the DEL event. @fix
Diffstat (limited to 'src/lib/ecore_con')
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index bc121d3965..941dc11cea 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -541,8 +541,6 @@ _ecore_con_connector_eo_base_finalize(Ecore_Con_Server *obj, void *pd EINA_UNUSE
541 return obj; 541 return obj;
542 542
543error: 543error:
544 if (svr->delete_me) return NULL;
545 _ecore_con_server_kill(obj);
546 return NULL; 544 return NULL;
547} 545}
548 546