From: sungwook79.park Date: Wed, 25 Oct 2017 09:37:44 +0000 (+0900) Subject: Fix issue that voice recording file is crashed X-Git-Tag: accepted/tizen/unified/20171031.175101~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Finputdelegator.git;a=commitdiff_plain;h=0fb68a71c8b61f3a5fdf4599e31d130b1445f043 Fix issue that voice recording file is crashed Change-Id: Ic17b9e6938dc62f93d84604bd3383e8cb1bef0f1 Signed-off-by: sungwook79.park --- diff --git a/src/voice-recorder.cpp b/src/voice-recorder.cpp index ef2c017..23139df 100644 --- a/src/voice-recorder.cpp +++ b/src/voice-recorder.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include "Debug.h" #include #include "voice-recorder.h" diff --git a/src/w-input-stt-voice.cpp b/src/w-input-stt-voice.cpp index 7ce7973..5e3f576 100755 --- a/src/w-input-stt-voice.cpp +++ b/src/w-input-stt-voice.cpp @@ -452,11 +452,13 @@ static void on_confirm_button_clicked_cb(void *data, Evas_Object *obj, void *eve } SECURE_LOGD("result_text = %s", result_text.c_str()); + stop_voice_recorder(); char *filePath = NULL; voice_recorder *vr = _voice_recorder_get_data(); - if (!vr) + if (vr) filePath = vr->file_path; + char *path[] = {filePath, }; reply_to_sender_by_callback(result_text.c_str(), "voice", (const char **)path, NULL); destroy_voice();