Update of /cvsroot/clucene/src/CLucene/index
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15012
Modified Files:
SegmentMergeQueue.cpp
Log Message:
Documented every method of the class SegmentMergeQueue
Solved memory leaks reported by asargent in bug 1064685
The solution was to make SegmentMergeInfo completely responsible for freeing its resources doing this
In the constructor of SegmentMergeQueue the call to the method initialise of the parent class Priority
queue now passes true as the second argument instead of false to indicate that the superclass is responsible
for destroying all SegmentMergeInfo Instances. This simplifies SegmentMergeQueue::close(), because it
now only needs to call the clear() method of its parent class PriorityQueue.
|