persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp
branchRCL_3
changeset 6 5ffdb8f2067f
parent 0 08ec8eefde2f
child 9 667e88a979d7
--- a/persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp	Wed Feb 03 12:02:34 2010 +0000
+++ b/persistentstorage/sql/SRC/Server/Compact/SqlCompact.cpp	Sat Feb 20 00:33:55 2010 +0200
@@ -173,7 +173,14 @@
 			{
 			if(entry->Release() == 0)
 				{
-				iEntries.Remove(idx);
+				iEntries.Remove(idx);			
+#ifdef _DEBUG
+//This is used prevent the failure of the resource allocation checking for debug mode. 
+				if(iEntries.Count() == 0)
+				    {
+                    iEntries.Reset();
+				    }
+#endif  
 				}
 			}
 		}