ecore_ipc: Fix memory leak

Summary:
As delete_me flag was not updated in the delete callback it dosen't
call ecore_ipc_client_del() on the client hence the leak.

Reviewers: Hermet, raster, bu5hm4n, CHAN

Reviewed By: Hermet, CHAN

Subscribers: CHAN, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11927
This commit is contained in:
Subhransu Mohanty 2020-06-08 20:27:42 +09:00 committed by Hermet Park
parent b2f9b0e24f
commit a02deffad7
1 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,8 @@ ecore_ipc_post_event_client_del(Ecore_Ipc_Client *cl)
Ecore_Ipc_Event_Client_Del *ev;
if (cl->delete_me) return;
cl->delete_me = EINA_TRUE;
ev = calloc(1, sizeof(Ecore_Ipc_Event_Client_Del));
EINA_SAFETY_ON_NULL_RETURN(ev);