diff -r 95c570bf4a05 -r 9a7e3d5f461a locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp --- a/locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp Wed Aug 18 11:11:46 2010 +0300 +++ b/locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp Fri Sep 17 08:37:32 2010 +0300 @@ -312,7 +312,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