diff options
author | ssteele <unknown> | 2003-09-12 09:40:28 +0000 |
---|---|---|
committer | ssteele <unknown> | 2003-09-12 09:40:28 +0000 |
commit | 6287f04a06452f36fc6beed9639c8ca421189743 (patch) | |
tree | 9ba74b13ca89cee74ff154ef414d3650608dfc95 /src | |
parent | 24729976c4fe13bbbc13f2f8416d89c2ba4ca9c6 (diff) | |
download | scintilla-mirror-6287f04a06452f36fc6beed9639c8ca421189743.tar.gz |
Fixed LexerManager Clear method as recommended by Sam Nabialek.
Diffstat (limited to 'src')
-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; } |