e_policy_visiblity: fix leak 69/217569/3
authorJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 12 Nov 2019 11:09:16 +0000 (20:09 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 29 Nov 2019 00:54:31 +0000 (09:54 +0900)
commit8b3729e78f68cefacbe1acd149b23d6d79b7fa19
treec810681963e3e28fb9b6904261a0f26414573d0b
parent87cdd9e3296eac58edc437d3f77e2d6dab7a97fd
e_policy_visiblity: fix leak

E_Vis_Client allocation and free is not paired due missing in
client delete hook and event handler
the EVENT_CLIENT_REMOVE is made in pair with E_EVENT_CLIENT_ADD
but, sometimes new_client don't made E_EVENT_CLIENT_ADD and tried to delete
and it leads leak as a result

Use only E_CLIENT_HOOK_DEL for consistanccy

Change-Id: Ic4c7ae3fbda9c14f321ca1969fd57f7690e3643d
src/bin/e_policy_visibility.c