--- a/searcher/searchserver/src/CCPixAbstractSearcher.cpp Mon Aug 09 10:51:30 2010 +0530
+++ b/searcher/searchserver/src/CCPixAbstractSearcher.cpp Wed Aug 25 13:17:41 2010 +0530
@@ -103,7 +103,7 @@
return document;
}
-RPointerArray<CSearchDocument> CCPixAbstractSearcher::ConvertBatchDocumentL( cpix_Document** aDocument, TInt aCount )
+RPointerArray<CSearchDocument> CCPixAbstractSearcher::ConvertBatchDocumentL( cpix_Document**& aDocument, TInt aCount )
{
// Read first the system fields that are passed as constructor parameters
//
@@ -182,11 +182,10 @@
CleanupStack::PopAndDestroy(docFieldEnum);
CleanupStack::Pop(document);
docSizeArray.AppendL( document->Size());
- docArray.AppendL( document );
- delete nextDocument;
- nextDocument = NULL;
+ docArray.AppendL( document );
}
- else break;
+ delete nextDocument;
+ nextDocument = NULL;
}
delete aDocument;
aDocument = NULL;