--- a/simpledatamodeladapter/src/presenceplugin.cpp Tue May 25 13:08:20 2010 +0300
+++ b/simpledatamodeladapter/src/presenceplugin.cpp Mon Jun 21 16:06:46 2010 +0300
@@ -196,7 +196,9 @@
//Add this new connection to connectionArray
CPresenceConnectionInfo* connectionInfo =
CPresenceConnectionInfo::NewL( connection );
- iConnectionArray.Append( connectionInfo );
+ CleanupStack::PushL( connectionInfo );
+ iConnectionArray.AppendL( connectionInfo );
+ CleanupStack::Pop();
connection->SetConnectionArray( connectionInfo );
iConnections.AppendL( connection );
CleanupStack::Pop( connection );
@@ -232,7 +234,9 @@
//Add this new connection to connectionArray
CPresenceConnectionInfo* connectionInfo =
CPresenceConnectionInfo::NewL( connection );
- iConnectionArray.Append( connectionInfo );
+ CleanupStack::PushL( connectionInfo );
+ iConnectionArray.AppendL( connectionInfo );
+ CleanupStack::Pop();
connection->SetConnectionArray( connectionInfo );
//Add on binded client
connectionInfo->IncreaseClientCount();