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
This commit is contained in:
Cedric BAIL 2015-06-03 16:12:01 +02:00
parent b2c47737b1
commit 69e44c24e3
1 changed files with 0 additions and 2 deletions

View File

@ -541,8 +541,6 @@ _ecore_con_connector_eo_base_finalize(Ecore_Con_Server *obj, void *pd EINA_UNUSE
return obj;
error:
if (svr->delete_me) return NULL;
_ecore_con_server_kill(obj);
return NULL;
}