Change-Id: I498b36afbee0247b6c5add8ca7b976df2211ed1a
static void __state_changed_cb(ttsd_state_e before, ttsd_state_e current)
{
state_changed_args_t* args = (state_changed_args_t*)calloc(1, sizeof(state_changed_args_t));
- args->before = before;
- args->current = current;
+ if (NULL != args) {
+ args->before = before;
+ args->current = current;
+ }
SLOG(LOG_INFO, tts_tag(), "[Server] Notify state chanaged from (%d) to (%d).", before, current);
g_notify_state_timer = ecore_timer_add(0.0, __state_changed_timer_cb, args);