diff options
| author | ssteele <devnull@localhost> | 2003-09-12 09:40:28 +0000 | 
|---|---|---|
| committer | ssteele <devnull@localhost> | 2003-09-12 09:40:28 +0000 | 
| commit | 7d23d8e756aa3f514ed32e9708fe6ac0b96860d4 (patch) | |
| tree | 9ba74b13ca89cee74ff154ef414d3650608dfc95 /src | |
| parent | a8b95c427be821877bff37b4a699c5bc05482377 (diff) | |
| download | scintilla-mirror-7d23d8e756aa3f514ed32e9708fe6ac0b96860d4.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;  		} | 
