set server/client data to NULL on a delete - as it's already returned it it

should now be NULL and not used.


SVN revision: 21435
This commit is contained in:
Carsten Haitzler 2006-03-20 05:59:21 +00:00
parent b2ecc06e68
commit 4924cf8ba2
2 changed files with 4 additions and 0 deletions

View File

@ -499,6 +499,7 @@ ecore_con_server_del(Ecore_Con_Server *svr)
return NULL;
}
data = svr->data;
svr->data = NULL;
if (svr->event_count > 0)
svr->delete_me = 1;
else
@ -711,6 +712,7 @@ ecore_con_client_del(Ecore_Con_Client *cl)
return NULL;
}
data = cl->data;
cl->data = NULL;
if (cl->event_count > 0)
cl->delete_me = 1;
else

View File

@ -434,6 +434,7 @@ ecore_ipc_server_del(Ecore_Ipc_Server *svr)
return NULL;
}
data = svr->data;
svr->data = NULL;
if (svr->event_count > 0)
svr->delete_me = 1;
else
@ -770,6 +771,7 @@ ecore_ipc_client_del(Ecore_Ipc_Client *cl)
return NULL;
}
data = cl->data;
cl->data = NULL;
if (cl->event_count > 0)
cl->delete_me = 1;
else