diff --git a/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp b/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp index 207673c3..7e7af2b0 100644 --- a/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp +++ b/mfc-examples/StreamingSpeechRecognition/StreamingSpeechRecognitionDlg.cpp @@ -525,7 +525,7 @@ int CStreamingSpeechRecognitionDlg::RunThread() { auto r = SherpaOnnxGetOnlineStreamResult(recognizer_, stream_); std::string text = r->text; - SherpaOnnxDestroyOnlineRecognizer(r); + SherpaOnnxDestroyOnlineRecognizerResult(r); if (!text.empty() && last_text != text) { // CString str; // str.Format(_T("%s"), Cat(results, text).c_str());