[Application] Add removing event_handler in destructor. 73/176073/5
authorLukasz Bardeli <l.bardeli@samsung.com>
Tue, 17 Apr 2018 09:07:51 +0000 (11:07 +0200)
committerLukasz Bardeli <l.bardeli@samsung.com>
Tue, 17 Apr 2018 09:07:51 +0000 (11:07 +0200)
commit2e6b06cb7a9e7797103c5476e97a974b087f69d3
tree9417c06d1dc9a9f6922bbe45175f5224055e6840
parentfa9352fb8e620a7d5224643dd550c19815bf145f
[Application] Add removing event_handler in destructor.

Removing all event_handler from events while closing application.
Without removing event_handler it is possible that native api will call
event with destroyed data. This fix is to prevent such situation

[Verification] Code compiles without error. TCT passrate 100%

Change-Id: I94d1fbb85ad47ca6dbcba6c56cd043521952860e
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
src/application/application_manager.cc