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([=]{
|
agi::dispatch::Background().Async([=]{
|
||||||
try {
|
try {
|
||||||
auto thes = agi::util::make_unique<agi::Thesaurus>(dat, idx);
|
auto thes = agi::util::make_unique<agi::Thesaurus>(dat, idx);
|
||||||
agi::dispatch::Main().Sync([&]{
|
agi::dispatch::Main().Sync([&thes, this]{
|
||||||
impl = std::move(thes);
|
impl = std::move(thes);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue