diff -r cf5c74390b98 -r 3e1f76dd2722 searcher/searchserver/src/CCPixAbstractSearcher.cpp --- a/searcher/searchserver/src/CCPixAbstractSearcher.cpp Wed Aug 18 10:53:26 2010 +0300 +++ b/searcher/searchserver/src/CCPixAbstractSearcher.cpp Thu Sep 02 21:37:32 2010 +0300 @@ -103,7 +103,7 @@ return document; } -RPointerArray CCPixAbstractSearcher::ConvertBatchDocumentL( cpix_Document** aDocument, TInt aCount ) +RPointerArray 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;