userlibandfileserver/fileserver/sfile/sf_obj.cpp
branchRCL_3
changeset 23 1df514389a47
parent 19 4a8fed1c0ef6
child 43 c1f20ce4abcf
--- a/userlibandfileserver/fileserver/sfile/sf_obj.cpp	Wed Mar 31 23:38:45 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_obj.cpp	Wed Apr 14 17:22:59 2010 +0300
@@ -129,7 +129,10 @@
 			if (newAlloc!=iAllocated)
 				{
 				if (newAlloc)
+				    {
 					iContainers=(CFsObjectCon**)User::ReAlloc(iContainers,newAlloc*sizeof(CFsObjectCon*));
+					__ASSERT_DEBUG(iContainers,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
+				    }
 				else
 					{
 					delete iContainers;
@@ -489,7 +492,10 @@
 		if (newAlloc!=iAllocated)
 			{
 			if (newAlloc)
+			    {
 				iObjects=(SFsObjectIxRec*)User::ReAlloc(iObjects,newAlloc*sizeof(SFsObjectIxRec));
+				__ASSERT_DEBUG(iObjects,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
+			    }
 			else
 				{
 				delete iObjects;
@@ -679,7 +685,10 @@
 			if (newAlloc!=iAllocated)
 				{
 				if (newAlloc)
+				    {
 					iObjects=(CFsObject**)User::ReAlloc(iObjects,newAlloc*sizeof(CFsObject*));
+					__ASSERT_DEBUG(iObjects,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
+				    }
 				else
 					{
 					delete iObjects;