summaryrefslogtreecommitdiffstats
path: root/src/searchindex.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-09-18 19:25:32 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-09-18 19:25:32 (GMT)
commitdb36de70fc9090e26c22ab288492407becb3a95e (patch)
treeb25e22f178d0e6d1ebb7e74f2348e9811a2f5394 /src/searchindex.cpp
parent3b98221d43ba62088538ead3aa726f81dd9202f9 (diff)
downloadDoxygen-db36de70fc9090e26c22ab288492407becb3a95e.zip
Doxygen-db36de70fc9090e26c22ab288492407becb3a95e.tar.gz
Doxygen-db36de70fc9090e26c22ab288492407becb3a95e.tar.bz2
Release-1.4.4-20050918
Diffstat (limited to 'src/searchindex.cpp')
-rw-r--r--src/searchindex.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/searchindex.cpp b/src/searchindex.cpp
index 400702b..0a9e9c5 100644
--- a/src/searchindex.cpp
+++ b/src/searchindex.cpp
@@ -64,6 +64,7 @@ SearchIndex::SearchIndex() : m_words(328829), m_index(numIndexEntries), m_urlInd
int i;
m_words.setAutoDelete(TRUE);
m_urls.setAutoDelete(TRUE);
+ m_index.setAutoDelete(TRUE);
for (i=0;i<numIndexEntries;i++) m_index.insert(i,new QList<IndexWord>);
}
@@ -279,7 +280,7 @@ void SearchIndex::write(const char *fileName)
}
}
- delete urlOffsets;
- delete wordStatOffsets;
+ delete[] urlOffsets;
+ delete[] wordStatOffsets;
}