forked from mia/Aegisub
Fix potential crash when a thesaurus finishes loading
This commit is contained in:
parent
5cfb76fe9a
commit
cf79e521e4
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void Thesaurus::OnLanguageChanged() {
|
|||
agi::dispatch::Background().Async([=]{
|
||||
try {
|
||||
auto thes = agi::util::make_unique<agi::Thesaurus>(dat, idx);
|
||||
agi::dispatch::Main().Sync([&]{
|
||||
agi::dispatch::Main().Sync([&thes, this]{
|
||||
impl = std::move(thes);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue