locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp
branchRCL_3
changeset 52 29dbbeac905d
parent 0 9cfd9a3ee49c
child 54 0c2046328c85
--- a/locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp	Wed Jun 09 11:13:47 2010 +0300
+++ b/locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp	Thu Aug 19 11:17:26 2010 +0300
@@ -282,7 +282,12 @@
 	if (fsm)
 		{
 		// Add the state machine to the buffer.
-		iFsmArray.Append(fsm);
+		TInt err = iFsmArray.Append(fsm);
+		if( err != KErrNone )
+			{
+			delete fsm;
+			return NULL;
+			}
 	
 		iNumActiveSessions++; // conceptually, a session starts when a Fsm is created for it