Inadvertently removed a IF_RELEASE(); r=waterson
git-svn-id: svn://10.0.0.236/trunk@84556 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c98cf928ae
commit
bedc6b6b8a
@ -284,11 +284,14 @@ CNavDTD::~CNavDTD(){
|
||||
|
||||
// delete mNodeRecycler;
|
||||
|
||||
|
||||
if(mSink) {
|
||||
nsLoggingSink *theLogSink=GetLoggingSink();
|
||||
if(mSink==theLogSink) {
|
||||
theLogSink->ReleaseProxySink();
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mSink);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mDTDDebug);
|
||||
@ -1027,7 +1030,7 @@ PRInt32 CNavDTD::LastOf(eHTMLTags aTagSet[],PRInt32 aCount) const {
|
||||
static
|
||||
PRInt32 GetIndexOfChildOrSynonym(nsDTDContext& aContext,eHTMLTags aChildTag) {
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
PRInt32 theChildIndex=nsHTMLElement::GetIndexOfChildOrSynonym(aContext,aChildTag);
|
||||
#else
|
||||
PRInt32 theChildIndex=aContext.LastOf(aChildTag);
|
||||
|
||||
@ -284,11 +284,14 @@ CNavDTD::~CNavDTD(){
|
||||
|
||||
// delete mNodeRecycler;
|
||||
|
||||
|
||||
if(mSink) {
|
||||
nsLoggingSink *theLogSink=GetLoggingSink();
|
||||
if(mSink==theLogSink) {
|
||||
theLogSink->ReleaseProxySink();
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mSink);
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(mDTDDebug);
|
||||
@ -1027,7 +1030,7 @@ PRInt32 CNavDTD::LastOf(eHTMLTags aTagSet[],PRInt32 aCount) const {
|
||||
static
|
||||
PRInt32 GetIndexOfChildOrSynonym(nsDTDContext& aContext,eHTMLTags aChildTag) {
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
PRInt32 theChildIndex=nsHTMLElement::GetIndexOfChildOrSynonym(aContext,aChildTag);
|
||||
#else
|
||||
PRInt32 theChildIndex=aContext.LastOf(aChildTag);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user