Ticket #78: xapian-java-bindings-delete.patch
File xapian-java-bindings-delete.patch, 659 bytes (added by , 19 years ago) |
---|
-
native/Query.cc
110 110 jsize size = env->GetArrayLength(terms); 111 111 string *array = toArray(env, terms, size); 112 112 Query *q = new Query(op_table[op-1], array, array+size); 113 delete array;113 delete[] array; 114 114 return _query->put(q); 115 115 CATCH(-1) 116 116 } … … 124 124 queries[x] = _query->get(qid_ptr[x]); 125 125 } 126 126 Query *q = new Query(op_table[op-1], queries, queries+len); 127 delete queries;127 delete[] queries; 128 128 return _query->put(q); 129 129 CATCH(-1) 130 130 }