[Application] Add removing event_handler in destructor. 52/176152/2
authorLukasz Bardeli <l.bardeli@samsung.com>
Tue, 17 Apr 2018 08:46:44 +0000 (10:46 +0200)
committerLukasz Bardeli <l.bardeli@samsung.com>
Tue, 17 Apr 2018 08:46:44 +0000 (10:46 +0200)
commit760dec944c3629eae70a128a357e10a016f6038b
tree993446d3a528007ee99eb91d6a1622f23f4b0f9f
parentc6b6fe183e64f9a9950d468129f3bec441af011d
[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