fix building MFC examples (#1178)

This commit is contained in:
Fangjun Kuang
2024-07-28 14:07:25 +08:00
committed by GitHub
parent 1f8e575133
commit 9e005f53c3

View File

@@ -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());