Fix crash issue 77/265477/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 20 Oct 2021 08:50:29 +0000 (17:50 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 20 Oct 2021 08:50:29 +0000 (17:50 +0900)
commit84e3ff73b07f22b827a6a41558e87a38b8df0115
treeb3cf29d455f6583e746f02923c4cf7c5ea49170a
parent6bb0d1496cde12ce85d265cad8e28642d98db077
Fix crash issue

While the process is terminating, the DebugPort::Dispose() call causes
SIGSEGV. Because, the context instance already destroyed in that time.
This patch adds a parameter to solve the crash issue. If the do_leave is
false, the method does not close the app com connection.

Change-Id: I69a0471d5a5deaeccab74ed04cb83d445b3f74b9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/debug-port-internal.cc
src/debug-port-internal.hh