46644: Fix FMM. Contribution from Daniel Bratell, bratell@lysator.liu.se, r=waterson and me

This commit is contained in:
akkana%netscape.com 2000-09-19 00:14:12 +00:00
Родитель 9c314b04e2
Коммит 4b6e16167f
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -255,10 +255,10 @@ nsHTMLContentSinkStream::InitEncoders()
void nsHTMLContentSinkStream::EnsureBufferSize(PRInt32 aNewSize)
{
if (mBufferSize < aNewSize) {
if(mBuffer) delete [] mBuffer;
if(mBuffer) nsMemory::Free(mBuffer);
mBufferSize = 2*aNewSize+1; // make this twice as large
mBuffer = new char[mBufferSize];
mBuffer = NS_STATIC_CAST(char *, nsMemory::Alloc(mBufferSize));
if(mBuffer){
mBuffer[0] = 0;
}

Просмотреть файл

@ -255,10 +255,10 @@ nsHTMLContentSinkStream::InitEncoders()
void nsHTMLContentSinkStream::EnsureBufferSize(PRInt32 aNewSize)
{
if (mBufferSize < aNewSize) {
if(mBuffer) delete [] mBuffer;
if(mBuffer) nsMemory::Free(mBuffer);
mBufferSize = 2*aNewSize+1; // make this twice as large
mBuffer = new char[mBufferSize];
mBuffer = NS_STATIC_CAST(char *, nsMemory::Alloc(mBufferSize));
if(mBuffer){
mBuffer[0] = 0;
}