diff options
Diffstat (limited to 'src/ExternalLexer.cxx')
-rw-r--r-- | src/ExternalLexer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ExternalLexer.cxx b/src/ExternalLexer.cxx index 88be76f24..752118b77 100644 --- a/src/ExternalLexer.cxx +++ b/src/ExternalLexer.cxx @@ -232,8 +232,9 @@ void LexerManager::Clear() { if (NULL != first) { LexerLibrary *cur = first; - LexerLibrary *next = first->next; + LexerLibrary *next; while (cur) { + next = cur->next; delete cur; cur = next; } |