зеркало из https://github.com/mozilla/pjs.git
fixed leak introduced with last update; r=taz.
This commit is contained in:
Родитель
7955006866
Коммит
9bc80a4219
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче