--- a/usbclasses/usbphoneasmodem/classimplementation/atplugin/src/pamplugin.cpp Wed Sep 15 13:20:24 2010 +0300
+++ b/usbclasses/usbphoneasmodem/classimplementation/atplugin/src/pamplugin.cpp Wed Oct 13 15:41:46 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -185,8 +185,9 @@
buf.Append( KCrlfString );
buf.Append( KOkString );
+ delete supportedAp;
aReply.Zero();
- aReply.Create( buf );
+ aReply.CreateL( buf );
TRACE_FUNC_EXIT
return;
@@ -209,7 +210,7 @@
TInt apArrayLength = apArray->Count();
if ( apArrayLength > 0)
{
- HBufC8* buf = HBufC8::NewL( KreplyBufferLength );
+ HBufC8* buf = HBufC8::NewLC( KreplyBufferLength );
buf->Des().Zero();
buf->Des().Append( KCrlfString );
for (TInt i=0; i < apArrayLength; i++ )
@@ -221,7 +222,8 @@
}
buf->Des().Append( KOkString );
aReply.Zero();
- aReply.Create( *buf );
+ aReply.CreateL( *buf );
+ CleanupStack::PopAndDestroy(buf); // buf;
}
else
{