small theoretical oopsie waiting to happen - won't ever, but guar

against it anyway.



SVN revision: 75232
This commit is contained in:
Carsten Haitzler 2012-08-14 06:11:32 +00:00
parent e78b572443
commit 61ba84e86d
1 changed files with 1 additions and 0 deletions

View File

@ -1223,6 +1223,7 @@ _ipc_server_data(void *data, int type __UNUSED__, void *event)
if ((e->data) && (e->size > 0) &&
(((unsigned char *)e->data)[e->size - 1] == 0))
{
if (extn->file.have_lock) _ecore_evas_socket_unlock(ee);
if (extn->file.lockfd) close(extn->file.lockfd);
if (extn->file.lock) eina_stringshare_del(extn->file.lock);
extn->file.lock = eina_stringshare_add(e->data);