locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp
--- 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