--- a/userlibandfileserver/fileserver/sfile/sf_ses.cpp Tue Feb 02 01:24:03 2010 +0200
+++ b/userlibandfileserver/fileserver/sfile/sf_ses.cpp Sat Feb 20 00:10:51 2010 +0200
@@ -27,6 +27,9 @@
iReservedDriveAccess(KReservedDriveAccessArrayGranularity, _FOFF(TReservedDriveAccess, iDriveNumber)),
iId(0)
{
+#if defined(_DEBUG) || defined(_DEBUG_RELEASE)
+ __e32_atomic_add_ord32(&SessionCount, 1);
+#endif
}
CSessionFs *CSessionFs::NewL()
@@ -64,6 +67,10 @@
iSessionFlagsLock.Close();
if(iDisconnectRequest)
delete(iDisconnectRequest);
+
+#if defined(_DEBUG) || defined(_DEBUG_RELEASE)
+ __e32_atomic_add_ord32(&SessionCount, (TUint32) -1);
+#endif
}
void CSessionFs::CreateL()