201033_01
authorhgs
Mon, 16 Aug 2010 13:23:30 +0300
changeset 60 d55467af0fda
parent 54 ee8c7592be5a
child 61 224b21efc2d4
201033_01
commonappservices/alarmserver/Server/Source/ASSrvAlarmQueue.cpp
coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp
sysresmonitoring/oommonitor/src/oomclientrequestqueue.cpp
sysresmonitoring/oommonitor/src/oomcloseapp.cpp
sysresmonitoring/oommonitor/src/oommemorymonitorsession.cpp
--- a/commonappservices/alarmserver/Server/Source/ASSrvAlarmQueue.cpp	Fri Aug 06 10:45:02 2010 +0300
+++ b/commonappservices/alarmserver/Server/Source/ASSrvAlarmQueue.cpp	Mon Aug 16 13:23:30 2010 +0300
@@ -96,7 +96,7 @@
 	iASSrvDSTChange = CASSrvDSTChange::NewL(*this);
 
 #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT
-	iSsmRtcAdaptation.Connect();
+	User::LeaveIfError(iSsmRtcAdaptation.Connect());
 	// Notify the listeners of 'KWakeupAlarmPubSubKey' key that the alarm queue is yet  to be internalized 
 	// by Alarm Server on its start-up at the device boot time.
 	RProperty::Define(KAlarmServerPubSubCategory, KWakeupAlarmPubSubKey, RProperty::EInt, KReadPolicy, KWritePolicy);
--- a/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp	Fri Aug 06 10:45:02 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp	Mon Aug 16 13:23:30 2010 +0300
@@ -52,7 +52,7 @@
 const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF;
 const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16;
 
-_LIT(KGpsIndicatorPlugin, "PositioningIndicator");
+_LIT(KGpsIndicatorPlugin, "com.nokia.positioning.indicatorplugin/1.0");
 const TUid KPSUidSecurityUIs = { 0x100059b5 };
 const TUint32 KSecurityUIsLights  = 0x00000308;
 
--- a/sysresmonitoring/oommonitor/src/oomclientrequestqueue.cpp	Fri Aug 06 10:45:02 2010 +0300
+++ b/sysresmonitoring/oommonitor/src/oomclientrequestqueue.cpp	Mon Aug 16 13:23:30 2010 +0300
@@ -193,13 +193,17 @@
         {
         RProcess processName;
         err = clientThread.Process(processName);
-        dataPaged = processName.DefaultDataPaged();
+        if(err == KErrNone)
+            {
+            dataPaged = processName.DefaultDataPaged();
+            processName.Close();
+            }
+        clientThread.Close();
         }
     else
         {
         OomMonitorPanic(KInvalidClientRequestType);
-        }
-    
+        }    
     
     switch (request->iClientRequestType)
         {
--- a/sysresmonitoring/oommonitor/src/oomcloseapp.cpp	Fri Aug 06 10:45:02 2010 +0300
+++ b/sysresmonitoring/oommonitor/src/oomcloseapp.cpp	Mon Aug 16 13:23:30 2010 +0300
@@ -59,15 +59,20 @@
     
     RThread thread;
     TInt err=thread.Open(iCurrentTask.ThreadId());
-    if (!err)
+    if (err == KErrNone)
         {
         RProcess process;
-        thread.Process(process);
-        TBool isDataPaged = process.DefaultDataPaged();
-        if((aIsDataPaged && isDataPaged) || (!aIsDataPaged && !isDataPaged ))
+        err = thread.Process(process);
+        if(err == KErrNone)
             {
-            iCurrentTask.EndTask();
+            TBool isDataPaged = process.DefaultDataPaged();
+            if((aIsDataPaged && isDataPaged) || (!aIsDataPaged && !isDataPaged ))
+                {
+                iCurrentTask.EndTask();
+                }                    
+            process.Close();
             }
+        thread.Close();
         }
     }
 
--- a/sysresmonitoring/oommonitor/src/oommemorymonitorsession.cpp	Fri Aug 06 10:45:02 2010 +0300
+++ b/sysresmonitoring/oommonitor/src/oommemorymonitorsession.cpp	Mon Aug 16 13:23:30 2010 +0300
@@ -73,9 +73,12 @@
         if(err == KErrNone)
             {
             dataPaged = processName.DefaultDataPaged();
+            processName.Close();
+            clientThread.Close();
             }
         else
             {
+            clientThread.Close();                        
             PanicClient(aMessage, EPanicIllegalFunction);
             }
         }