metadataengine/client/src/mdeasynchronousfindao.cpp
changeset 20 6dfc5f825351
parent 1 acef663c1218
child 40 910a23996aa0
--- a/metadataengine/client/src/mdeasynchronousfindao.cpp	Tue Feb 02 00:24:33 2010 +0200
+++ b/metadataengine/client/src/mdeasynchronousfindao.cpp	Fri Mar 19 09:38:01 2010 +0200
@@ -107,7 +107,7 @@
         }
 
     iConditionBuffer = 
-    	CMdEQueryCriteriaSerialization::NewLC( resultMode, iQuery.Type(),     										   
+    	CMdEQueryCriteriaSerialization::NewL( resultMode, iQuery.Type(),     										   
     										   iQuery.NamespaceDef(), 
     										   objectDef, 
     										   objectDefs, 
@@ -116,7 +116,6 @@
     										   queryOptimizationFlags, 
     										   iQuery.Conditions(), iQuery.OrderRules(),
     										   propertyFilter );
-	CleanupStack::Pop();
     iSession.DoFindAsync( 
     	iQuery.GetQueryId(), 
         *iConditionBuffer,
@@ -312,6 +311,7 @@
 
         // get rid of local results list
         iResultList.Reset();
+        iResultList.Compress();
         }
     // Notify result ids
     else if ( ( aStatus == EAsyncFindSetReady ||