Avoid crashes on plugin unload while loading.

This commit is contained in:
Martín Lucas Golini
2024-09-28 13:42:54 -03:00
parent 49e56f05a2
commit 5a7e7e5387
8 changed files with 9 additions and 3 deletions

View File

@@ -106,6 +106,7 @@ AutoCompletePlugin::AutoCompletePlugin( PluginManager* pluginManager, bool sync
}
AutoCompletePlugin::~AutoCompletePlugin() {
waitUntilLoaded();
mShuttingDown = true;
mManager->unsubscribeMessages( this );
unsubscribeFileSystemListener();