should not affect runtime until compiler switches change
in morkConfig.h; so only build is affected. Checkin permission
from choffman last Friday.


git-svn-id: svn://10.0.0.236/trunk@49257 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
davidmc%netscape.com
1999-09-28 23:09:49 +00:00
parent de237d8b57
commit f0b4758c14

View File

@@ -175,9 +175,14 @@ morkBeadMap::AddBead(morkEnv* ev, morkBead* ioBead)
if ( put ) // replaced an existing key?
{
if ( oldBead != ioBead ) // new bead was not already in table?
ioBead->AddStrongRef(ev); // now there's another ref
if ( oldBead && oldBead != ioBead ) // need to release old node?
oldBead->CutStrongRef(ev);
}
else
ioBead->AddStrongRef(ev); // another ref if not already in table
}
else if ( !ioBead )
ev->NilPointerError();
@@ -395,9 +400,14 @@ morkBeadProbeMap::AddBead(morkEnv* ev, morkBead* ioBead)
if ( put ) // replaced an existing key?
{
if ( bead != ioBead ) // new bead was not already in table?
ioBead->AddStrongRef(ev); // now there's another ref
if ( bead && bead != ioBead ) // need to release old node?
bead->CutStrongRef(ev);
}
else
ioBead->AddStrongRef(ev); // now there's another ref
}
else if ( !ioBead )
ev->NilPointerError();