Make function for managing speak_data_s 11/266211/9
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 26 Apr 2021 06:36:59 +0000 (15:36 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 15 Feb 2022 06:19:46 +0000 (15:19 +0900)
commitf1da1b04f7d44b04af1efde6cb65db63512edf89
tree36731f07d3fcc0d50d37924bc3d6557fc53bfe58
parent7c7db9c5cda568bc28a9065aa6736fddb39f03d1
Make function for managing speak_data_s

In previous code, instance of speak_data_s created by ttsd_server.c but destroyed by ttsd_data.c.
This way of memory management is dangerous because invalid memory access can occur by the mistake
of developers.

This patch provides two new function for creating and destroying instance of speak_data_s.
These functions provide safe creation and destruction of the instance.

Change-Id: I016720eccbffd16bdfcb23878573caa1cb9f3115
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_data.cpp
server/ttsd_data.h
server/ttsd_server.c