Destroy RPC handle in ecore idler 83/287583/1 accepted/tizen/unified/20230215.100739
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 26 Jan 2023 07:52:09 +0000 (16:52 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 1 Feb 2023 03:07:23 +0000 (03:07 +0000)
commitfe6372b41e69bf0a20720a722e929aa902b096c4
treeee440d73472bd09d1d397a2ed5c4d7d8c597f0cb
parent225455244f965e31da776c32ee12abaadf1eb966
Destroy RPC handle in ecore idler

- Issue:
Invoking tts_unprepare() in event callbacks is allowed and this may
cause segmentation fault by destroying RPC handle in the callback which
is invoked by RPC message.

- Solution:
The app can call tts_unprepare() in the callback. However, this
invocation may cause segmentation fault by destroying the RPC handle in
the callback of the RPC handle itself.
To solve this issue, this patch fixes the RPC handle destruction logic.
Through this patch, the client lib will destroy the handle in ecore idler
callback. This behavior can avoid wrong handle destruction.

Change-Id: I01a2ae528be8f0fa8683c608b3786b5db282d0e1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
(cherry picked from commit 96dd49ebd12b1c1853071cfe5e570e183c6133ee)
client/tts_tidl.c