--- a/loggingservices/rfilelogger/Logger/Src/Client.cpp Fri Mar 12 15:51:02 2010 +0200
+++ b/loggingservices/rfilelogger/Logger/Src/Client.cpp Mon Mar 15 12:46:30 2010 +0200
@@ -234,7 +234,7 @@
TBuf16<KMaxFilename> fileName;
GetCPPModuleName(fileName, aFile);
// Create a buffer for formatting
- HBufC* buffer = HBufC::NewLC(KMaxLoggerLineLength*2);
+ HBufC* buffer = HBufC::New(KMaxLoggerLineLength*2);
if(!buffer)
return; // no memory
TPtr ptr(buffer->Des());
@@ -289,7 +289,7 @@
}
/*----------------- End of Maintaince warning section --------------------------*/
TRAPD(err,WriteL(ptr));
- CleanupStack::PopAndDestroy(buffer);
+ delete buffer;
}