mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-15 07:22:49 +03:00
Fix crash when reloading plugins and triggering subscribed events.
This commit is contained in:
@@ -155,6 +155,8 @@ LSPClientPlugin::~LSPClientPlugin() {
|
||||
if ( editor.first->hasDocument() )
|
||||
editor.first->getDocument().removeCommand( kb.first );
|
||||
}
|
||||
for ( auto listener : editor.second )
|
||||
editor.first->removeEventListener( listener );
|
||||
editor.first->unregisterPlugin( this );
|
||||
}
|
||||
if ( nullptr == mManager->getSplitter() )
|
||||
|
||||
Reference in New Issue
Block a user