fixed leak introduced with last update; r=taz.
git-svn-id: svn://10.0.0.236/trunk@63252 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0ea3419b62
commit
c874c0f6b9
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user