sysresmonitoring/oommonitor/src/oomclientrequestqueue.cpp
branchRCL_3
changeset 21 9af619316cbf
parent 20 c2c61fdca848
--- a/sysresmonitoring/oommonitor/src/oomclientrequestqueue.cpp	Wed Sep 01 12:24:48 2010 +0100
+++ b/sysresmonitoring/oommonitor/src/oomclientrequestqueue.cpp	Tue Sep 14 21:35:53 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)
         {