PRINTFUNC(DLOG_DEBUG, "");
-
if (true == _app_stt_initialize(voicedata)) {
LOGD("_app_stt_initialize None Error");
voicedata->voicefw_state = 1;
PRINTFUNC(DLOG_DEBUG, "POWER Unlock");
VoiceData *voicedata = (VoiceData *) data;
- device_power_release_lock(POWER_LOCK_DISPLAY);
+ int ret = device_power_release_lock(POWER_LOCK_DISPLAY);
+ if (ret != DEVICE_ERROR_NONE)
+ LOGW("Failed to release power(Display) (%d)", ret);
+
voicedata->power_unlock_timer = NULL;
return ECORE_CALLBACK_CANCEL;
void powerUnlock()
{
PRINTFUNC(DLOG_DEBUG, "POWER Unlock directly.");
- device_power_release_lock(POWER_LOCK_DISPLAY);
+ int ret = device_power_release_lock(POWER_LOCK_DISPLAY);
+ if (ret != DEVICE_ERROR_NONE)
+ LOGW("Failed to release power(Display) (%d)", ret);
}
void powerLock(void *data, bool enable)
elm_naviframe_item_pop_cb_set(navi_it, __stt_entry_detailed_view_pop_cb, (void *)voicedata);
elm_naviframe_item_title_enabled_set(navi_it, EINA_FALSE, EINA_FALSE);
free(str);
+ } else {
+ if (str) free(str);
+ str = NULL;
}
return;
voicedata->main_entry = NULL;
voicedata->state = STT_STATE_VAL_INIT;
voicedata->kbd_lang = NULL;
+ voicedata->setup_timer = NULL;
voicedata->start_timer = NULL;
voicedata->refresh_timer = NULL;
voicedata->textblock_timer = NULL;