From 0197776bc8d55c49a6e608a35525714814fc4fcc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 7 Sep 2000 12:34:13 +0000 Subject: Changed back to two pass way of creating word arrays. --- src/PropSet.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/PropSet.cxx b/src/PropSet.cxx index 27cd51baa..a58d14316 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -336,7 +336,7 @@ static bool iswordsep(char ch, bool onlyLineEnds) { // Creates an array that points into each word in the string and puts \0 terminators // after each word. static char **ArrayFromWordList(char *wordlist, int *len, bool onlyLineEnds = false) { -#if 0 +#if 1 char prev = '\n'; int words = 0; for (int j = 0; wordlist[j]; j++) { @@ -403,7 +403,11 @@ out: void WordList::Clear() { if (words) { delete []list; +#if 1 + delete []words; +#else free(words); +#endif free(wordsNoCase); } words = 0; -- cgit v1.2.3