Change-Id: I5fb641ca395a1d399605d585939c42152424b72c
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
}
vd->sttfeedback = new is::stt::SttFeedback();
- if (vd->sttfeedback)
+ if (vd->sttfeedback) {
vd->sttfeedback->SetVoiceData(vd);
- vd->sttmanager = new is::stt::SttManager(*(vd->sttfeedback));
- if (vd->sttmanager)
- vd->sttmanager->Prepare();
+ vd->sttmanager = new is::stt::SttManager(*(vd->sttfeedback));
+ if (vd->sttmanager)
+ vd->sttmanager->Prepare();
+ else
+ LOGW("Failed to allocate SttManager");
+ } else {
+ LOGW("Failed to allocate SttFeedback");
+ }
} catch(std::exception &e) {
LOGD("%s", e.what());
return false;