|
From: John W. <j_w...@us...> - 2004-12-10 20:27:57
|
Update of /cvsroot/clucene/src/CLucene/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv493 Modified Files: PriorityQueue.h Log Message: - In the destructor of PriorityQueue the statment delete [] heap has been changed into _DELETE_ARRAY(heap); In case some one forgets to call initialize - In the method clear of PriorityQueue delete heap[i] has been changed into _DELETE(heap[i]); so clear can be called multiple times savely - Solved bug of deleting invalid memory in the method clear() by changing the iteration of the for loop from for (int_t 0 = 1; i < size; i++) into for (int_t 1 = 1; i <= size; i++) heap[0] never gets a valid memory allocation |