diff -r 4a629bc82c5e -r b67dd1fc57c5 mmserv/tms/tmscallserver/src/tmscallsession.cpp --- a/mmserv/tms/tmscallserver/src/tmscallsession.cpp Fri Apr 30 19:18:45 2010 -0500 +++ b/mmserv/tms/tmscallserver/src/tmscallsession.cpp Fri May 14 18:19:45 2010 -0500 @@ -25,6 +25,7 @@ using namespace TMS; const guint KArrayExpandSize = 8; +const guint KNumOfElements = 10; // ----------------------------------------------------------------------------- // TMSCallSession::TMSCallSession @@ -298,7 +299,7 @@ { TMSCliSrvStreamInitDataStructBufPckg pckg; aMessage.ReadL(0, pckg); - status = iCallAdpt->InitStreamL(pckg().CallType, pckg().StreamType, + status = iCallAdpt->InitStream(pckg().CallType, pckg().StreamType, pckg().StreamId, pckg().FormatType, aMessage); switch (pckg().StreamType) @@ -1106,7 +1107,7 @@ gint count; if (iCallAdpt) { - CBufFlat* outputbuf = CBufFlat::NewL(10); + CBufFlat* outputbuf = CBufFlat::NewL(KNumOfElements); CleanupStack::PushL(outputbuf); status = iCallAdpt->GetAvailableOutputsL(count, outputbuf); @@ -1132,8 +1133,6 @@ HBufC* tone(NULL); if (len > 0) { - delete tone; - tone = NULL; TRAP(status,tone = HBufC::NewL(len)); if (status == KErrNone) {