contentpublishingsrv/contentpublishingserver/cpserver/src/cpserver.cpp
branchRCL_3
changeset 18 bd874ee5e5e2
parent 0 79c6a41cd166
child 19 502e5d91ad42
--- a/contentpublishingsrv/contentpublishingserver/cpserver/src/cpserver.cpp	Fri Feb 19 23:07:29 2010 +0200
+++ b/contentpublishingsrv/contentpublishingserver/cpserver/src/cpserver.cpp	Fri Mar 12 15:43:54 2010 +0200
@@ -15,7 +15,7 @@
 *
 */
 
-
+#include <mw/memorymanager.h>
 #include <liwcommon.h>
 #include <ecom/ecom.h>
 #include <fbs.h>
@@ -387,7 +387,12 @@
 //
 TInt E32Main()
     {
-    return CCPServer::ThreadStart( );
+    RAllocator* iAllocator = MemoryManager::SwitchToFastAllocator();
+    
+    //Get the return value (needs to call CloseFastAllocator() before return)
+    TInt iReturnValue = CCPServer::ThreadStart( );
+    MemoryManager::CloseFastAllocator(iAllocator);
+    return iReturnValue;  
     }
 
 // End of File