From 771df6949ed3cd77ce9fc2367fb4738083ad3b3c Mon Sep 17 00:00:00 2001 From: shewer Date: Tue, 7 May 2024 15:26:05 +0800 Subject: [PATCH] add ge() in register component Signed-off-by: shewer --- src/lua_gears.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lua_gears.cc b/src/lua_gears.cc index 9e1f704..0f8a01e 100644 --- a/src/lua_gears.cc +++ b/src/lua_gears.cc @@ -159,6 +159,7 @@ LuaFilter::~LuaFilter() { LOG(ERROR) << "LuaFilter::~LuaFilter of "<< name_space_ << " error(" << e.status << "): " << e.e; } } + lua_->gc(); } //--- LuaTranslator @@ -186,6 +187,7 @@ LuaTranslator::~LuaTranslator() { LOG(ERROR) << "LuaTranslator::~LuaTranslator of "<< name_space_ << " error(" << e.status << "): " << e.e; } } + lua_->gc(); } //--- LuaSegmentor @@ -213,6 +215,7 @@ LuaSegmentor::~LuaSegmentor() { LOG(ERROR) << "LuaSegmentor::~LuaSegmentor of "<< name_space_ << " error(" << e.status << "): " << e.e; } } + lua_->gc(); } //--- LuaProcessor @@ -244,6 +247,7 @@ LuaProcessor::~LuaProcessor() { LOG(ERROR) << "LuaProcessor::~LuaProcessor of "<< name_space_ << " error(" << e.status << "): " << e.e; } } + lua_->gc(); } } // namespace rime