--- a/sysresmonitoring/oodmonitor/oodmonitor2/src/outofdiskglobalnote.cpp Fri Feb 19 22:58:54 2010 +0200
+++ b/sysresmonitoring/oodmonitor/oodmonitor2/src/outofdiskglobalnote.cpp Fri Mar 12 15:43:21 2010 +0200
@@ -240,7 +240,10 @@
}
}
resReader.SetBuffer(str);
- HBufC* message( FormatStringL(resReader.ReadHBufCL()->Des(), *strings));
+ HBufC* resHandle = resReader.ReadHBufCL();
+ CleanupStack::PushL( resHandle );
+ HBufC* message(FormatStringL(resHandle->Des(),*strings));
+ CleanupStack::PushL( message );
TRACES1("COutOfDiskMonitor::ShowGlobalQueryL: txt: %S",message);
DisplayL(message->Des());
@@ -252,8 +255,10 @@
iNoteInfo.iStatus = aStatus;
iNoteInfo.iDrive = aDrive;
+ CleanupStack::PopAndDestroy(message);
+ CleanupStack::PopAndDestroy(resHandle);
CleanupStack::PopAndDestroy( str );
- CleanupStack::PopAndDestroy( strings );
+ CleanupStack::PopAndDestroy( strings );
iOutOfDiskMonitor->SetAsDisplayedL(aDrive, aStatus);
}
TRACES("COutOfDiskGlobalNote::ShowGlobalQueryL: End");