Skip to content

Commit

Permalink
add ge() in register component
Browse files Browse the repository at this point in the history
Signed-off-by: shewer <[email protected]>
  • Loading branch information
shewer committed May 7, 2024
1 parent 43229d7 commit 771df69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lua_gears.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ LuaFilter::~LuaFilter() {
LOG(ERROR) << "LuaFilter::~LuaFilter of "<< name_space_ << " error(" << e.status << "): " << e.e;
}
}
lua_->gc();
}

//--- LuaTranslator
Expand Down Expand Up @@ -186,6 +187,7 @@ LuaTranslator::~LuaTranslator() {
LOG(ERROR) << "LuaTranslator::~LuaTranslator of "<< name_space_ << " error(" << e.status << "): " << e.e;
}
}
lua_->gc();
}

//--- LuaSegmentor
Expand Down Expand Up @@ -213,6 +215,7 @@ LuaSegmentor::~LuaSegmentor() {
LOG(ERROR) << "LuaSegmentor::~LuaSegmentor of "<< name_space_ << " error(" << e.status << "): " << e.e;
}
}
lua_->gc();
}

//--- LuaProcessor
Expand Down Expand Up @@ -244,6 +247,7 @@ LuaProcessor::~LuaProcessor() {
LOG(ERROR) << "LuaProcessor::~LuaProcessor of "<< name_space_ << " error(" << e.status << "): " << e.e;
}
}
lua_->gc();
}

} // namespace rime

0 comments on commit 771df69

Please sign in to comment.