--- a/metadataengine/client/src/mdequery.cpp Fri Mar 12 15:44:28 2010 +0200
+++ b/metadataengine/client/src/mdequery.cpp Mon Mar 15 12:42:24 2010 +0200
@@ -47,10 +47,8 @@
// This will destroy the entire conditions tree.
delete iConditions;
- const TInt count = iResults.Count();
-
// Destroy all result items this query instance owns.
- for(TInt i = 0; i < count; ++i)
+ for( TInt i = iResults.Count() - 1; i >=0; i-- )
{
if(iResults[i].iOwned)
{
@@ -149,11 +147,9 @@
User::Leave(KErrNotReady);
}
- const TInt count = iResults.Count();
-
// clear old results
// Destroy all result items this query instance owns.
- for(TInt i = 0; i < count; ++i)
+ for( TInt i = iResults.Count() - 1; i >=0; i-- )
{
if(iResults[i].iOwned)
{