summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/assistant/lib/fulltextsearch/qindexwriter.cpp2
-rw-r--r--tools/assistant/lib/fulltextsearch/qsort.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/assistant/lib/fulltextsearch/qindexwriter.cpp b/tools/assistant/lib/fulltextsearch/qindexwriter.cpp
index 357569c..ee1c2dc 100644
--- a/tools/assistant/lib/fulltextsearch/qindexwriter.cpp
+++ b/tools/assistant/lib/fulltextsearch/qindexwriter.cpp
@@ -88,7 +88,7 @@ void QCLuceneIndexWriter::addIndexes(const QList<QCLuceneIndexReader*> &readers)
readerArray[i] = (readers.at(i))->d->reader;
d->writer->addIndexes(readerArray);
- delete readerArray;
+ delete [] readerArray;
}
void QCLuceneIndexWriter::addDocument(QCLuceneDocument &doc,
diff --git a/tools/assistant/lib/fulltextsearch/qsort.cpp b/tools/assistant/lib/fulltextsearch/qsort.cpp
index d9375bf..3263195 100644
--- a/tools/assistant/lib/fulltextsearch/qsort.cpp
+++ b/tools/assistant/lib/fulltextsearch/qsort.cpp
@@ -84,7 +84,7 @@ void QCLuceneSort::setSort(const QStringList &fieldNames)
for (int i = 0; i < fieldNames.count(); ++i)
delete [] nameArray[i];
- delete nameArray;
+ delete [] nameArray;
}
void QCLuceneSort::setSort(const QString &field, bool reverse)