mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-01 11:06:30 +03:00
ecode: Crash fix from an old bug that wasn't breaking anything until now.
This commit is contained in:
@@ -954,7 +954,7 @@ void LSPClientPlugin::onUnregister( UICodeEditor* editor ) {
|
||||
if ( mClosing )
|
||||
return;
|
||||
Lock l( mDocMutex );
|
||||
TextDocument* doc = mEditorDocs[editor];
|
||||
TextDocument* doc = &editor->getDocument();
|
||||
const auto& cbs = mEditors[editor];
|
||||
for ( auto listener : cbs )
|
||||
editor->removeEventListener( listener );
|
||||
|
||||
Reference in New Issue
Block a user