[application] Fixing memory management for app_control_send_launch_request_async 49/228649/3
authorPiotr Kosko <p.kosko@samsung.com>
Tue, 24 Mar 2020 09:48:55 +0000 (10:48 +0100)
committerPiotr Kosko <p.kosko@samsung.com>
Tue, 24 Mar 2020 11:00:18 +0000 (12:00 +0100)
commit5223d20671317279378ad698fb6e9edd86ea0a85
tree427a9a42c158d93ae019a415cea005f601529d61
parent830b09f59cbb6f33f55d76cf16dac67db4b73ca1
[application] Fixing memory management for app_control_send_launch_request_async

[Bug] Order of reply and result callbacks is not defined (because both
signals come from different processes). This causes that we cannot just
release the memory in well defined way. Thus we added delay for removing
a data passed to callbacks to prevent crash.

[Verification] application tct passrate 100%
deprecate tct passrate 100%
Verified manually with application from PLM issue P200214-04877

Change-Id: Id50e80f7aecbaa9a01d46258f4f2a8eabe322409
src/application/application_manager.cc