Remove Eet_Connection from hash Before we call eet_connection_close

(as that frees the connection).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-08-05 13:13:19 +01:00
parent a97f3c0b9b
commit b344ef2440
1 changed files with 1 additions and 1 deletions

View File

@ -151,8 +151,8 @@ cl_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Del
ec = eina_hash_find(clients, ev->client);
if (ec)
{
eet_connection_close(ec, &d);
eina_hash_del_by_data(clients, ec);
eet_connection_close(ec, &d);
}
return ECORE_CALLBACK_RENEW;