fixed leak introduced with last update; r=taz.

This commit is contained in:
rickg%netscape.com 2000-03-17 05:08:14 +00:00
Родитель 7955006866
Коммит 9bc80a4219
4 изменённых файлов: 10 добавлений и 18 удалений

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

@ -95,7 +95,6 @@ CParserContext::CParserContext(const CParserContext &aContext) :
mMultipart=aContext.mMultipart;
mContextType=aContext.mContextType;
mCopyUnused;
mRefCount=2;
}
@ -108,14 +107,11 @@ CParserContext::~CParserContext(){
MOZ_COUNT_DTOR(CParserContext);
mRefCount--;
if(0==mRefCount) {
if(mScanner)
delete mScanner;
if(mScanner)
delete mScanner;
if(mTransferBuffer)
delete [] mTransferBuffer;
}
if(mTransferBuffer)
delete [] mTransferBuffer;
NS_IF_RELEASE(mDTD);

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

@ -68,7 +68,7 @@ public:
PRBool mMultipart;
eContextType mContextType;
eAutoDetectResult mAutoDetectStatus;
PRInt32 mRefCount;
nsString mSourceType;

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

@ -95,7 +95,6 @@ CParserContext::CParserContext(const CParserContext &aContext) :
mMultipart=aContext.mMultipart;
mContextType=aContext.mContextType;
mCopyUnused;
mRefCount=2;
}
@ -108,14 +107,11 @@ CParserContext::~CParserContext(){
MOZ_COUNT_DTOR(CParserContext);
mRefCount--;
if(0==mRefCount) {
if(mScanner)
delete mScanner;
if(mScanner)
delete mScanner;
if(mTransferBuffer)
delete [] mTransferBuffer;
}
if(mTransferBuffer)
delete [] mTransferBuffer;
NS_IF_RELEASE(mDTD);

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

@ -68,7 +68,7 @@ public:
PRBool mMultipart;
eContextType mContextType;
eAutoDetectResult mAutoDetectStatus;
PRInt32 mRefCount;
nsString mSourceType;