From c63bb098e8e5ea97897b6767d65b6993497fe4fa Mon Sep 17 00:00:00 2001 From: LittleMouse Date: Wed, 16 Apr 2025 18:08:56 +0800 Subject: [PATCH] [fix] Fixed the issue that CMM cannot be released after the class EngineWrapper is destroyed --- projects/llm_framework/main_whisper/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/llm_framework/main_whisper/src/main.cpp b/projects/llm_framework/main_whisper/src/main.cpp index 3dc05e8..776408b 100644 --- a/projects/llm_framework/main_whisper/src/main.cpp +++ b/projects/llm_framework/main_whisper/src/main.cpp @@ -544,6 +544,9 @@ public: ~llm_task() { stop(); + if (encoder_) encoder_->Release(); + if (decoder_main_) decoder_main_->Release(); + if (decoder_loop_) decoder_loop_->Release(); _ax_deinit(); buffer_destroy(pcmdata); }