From f52c3f4db66b87bfee5b4873737bfd6756716aef Mon Sep 17 00:00:00 2001 From: mitchell Date: Tue, 2 Jun 2020 16:19:18 -0400 Subject: Fixed crashes on Win32 related to previous backport. --- src/ScintillaBase.cxx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 0ef8a5b30..92d8577a8 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -604,10 +604,6 @@ LexState::LexState(Document *pdoc_) : LexInterface(pdoc_) { LexState::~LexState() { if (instance) { instance->Release(); - LexillaLexer *iLexer5 = dynamic_cast(instance); - if (iLexer5) { - delete iLexer5; - } instance = nullptr; } } @@ -615,10 +611,6 @@ LexState::~LexState() { void LexState::SetInstance(ILexer *instance_) { if (instance) { instance->Release(); - LexillaLexer *iLexer5 = dynamic_cast(instance); - if (iLexer5) { - delete iLexer5; - } instance = nullptr; } instance = instance_; @@ -636,10 +628,6 @@ void LexState::SetLexerModule(const LexerModule *lex) { if (lex != lexCurrent) { if (instance) { instance->Release(); - LexillaLexer *iLexer5 = dynamic_cast(instance); - if (iLexer5) { - delete iLexer5; - } instance = nullptr; } interfaceVersion = lvOriginal; -- cgit v1.2.3