diff -r 7c90e6132015 -r 10e98eab6f85 webengine/webkitutils/HistoryProvider/HistoryEntry.cpp --- a/webengine/webkitutils/HistoryProvider/HistoryEntry.cpp Fri May 08 08:25:06 2009 +0300 +++ b/webengine/webkitutils/HistoryProvider/HistoryEntry.cpp Fri Jul 03 15:54:40 2009 +0100 @@ -149,8 +149,10 @@ } if (m_thumbnailBuf) { RBufWriteStream stream(*m_thumbnailBuf); + CleanupClosePushL(stream); TRAPD(err, thumbnail->ExternalizeRectangleL(stream, area)); stream.Close(); + CleanupStack::PopAndDestroy(); //stream if (err) { delete m_thumbnailBuf; m_thumbnailBuf = 0;