summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-22 19:53:06 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-22 19:53:06 -0200
commit53f1c1ca6efdd96d8be892779f6fec188715b466 (patch)
tree2b609eacdbaf6a8a6d55c89723dce64c7c992413 /src/lib/ecore_ipc
parent54ca7db20b1cc5082496b380c09e1d6e6d34367a (diff)
ecore_ipc: delete if 'delete_me' was set.
The flag 'delete_me' is set when there are pending events to be dispatched. Once these events are freed, they will check if the server was pending delete and call ecore_ipc_server_del() again, thus we must not return, otherwise data will be leaked.
Diffstat (limited to 'src/lib/ecore_ipc')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c
index 7c886e90ed..52478396cf 100644
--- a/src/lib/ecore_ipc/ecore_ipc.c
+++ b/src/lib/ecore_ipc/ecore_ipc.c
@@ -382,7 +382,6 @@ ecore_ipc_server_del(Ecore_Ipc_Server *svr)
382 "ecore_ipc_server_del"); 382 "ecore_ipc_server_del");
383 return NULL; 383 return NULL;
384 } 384 }
385 if (svr->delete_me) return NULL;
386 385
387 data = svr->data; 386 data = svr->data;
388 svr->data = NULL; 387 svr->data = NULL;