From cf79e521e4164a394e68e5d1b236027d2d157278 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 11 Jan 2014 07:48:27 -0800 Subject: [PATCH] Fix potential crash when a thesaurus finishes loading --- aegisub/src/thesaurus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/thesaurus.cpp b/aegisub/src/thesaurus.cpp index fdececbb6..0eaaee777 100644 --- a/aegisub/src/thesaurus.cpp +++ b/aegisub/src/thesaurus.cpp @@ -103,7 +103,7 @@ void Thesaurus::OnLanguageChanged() { agi::dispatch::Background().Async([=]{ try { auto thes = agi::util::make_unique(dat, idx); - agi::dispatch::Main().Sync([&]{ + agi::dispatch::Main().Sync([&thes, this]{ impl = std::move(thes); }); }