summaryrefslogtreecommitdiff
path: root/dw/hyphenator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/hyphenator.cc')
-rw-r--r--dw/hyphenator.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc
index efcac511..62a47a73 100644
--- a/dw/hyphenator.cc
+++ b/dw/hyphenator.cc
@@ -241,7 +241,7 @@ int *Hyphenator::hyphenateWord(const char *word, int *numBreaks)
if (wordLc[startActualWord] == 0) {
// No letters etc in word: do not hyphenate at all.
- delete wordLc;
+ free (wordLc);
*numBreaks = 0;
return NULL;
}
@@ -263,14 +263,14 @@ int *Hyphenator::hyphenateWord(const char *word, int *numBreaks)
int *result = new int[exceptionalBreaks->size()];
for (int i = 0; i < exceptionalBreaks->size(); i++)
result[i] = exceptionalBreaks->get(i)->getValue() + startActualWord;
- delete wordLc;
+ free (wordLc);
*numBreaks = exceptionalBreaks->size();
return result;
}
// trie == NULL means that there is no pattern file.
if (trie == NULL) {
- delete wordLc;
+ free (wordLc);
*numBreaks = 0;
return NULL;
}
@@ -320,7 +320,7 @@ int *Hyphenator::hyphenateWord(const char *word, int *numBreaks)
}
}
- delete wordLc;
+ free (wordLc);
*numBreaks = breakPos.size ();
if (*numBreaks == 0)