fix a ref counting bug with class atoms

This commit is contained in:
peterl%netscape.com 1998-12-21 18:38:44 +00:00
parent 6493c0fc74
commit 8b9304316e
2 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,7 @@ struct nsClassList {
: mAtom(aCopy.mAtom),
mNext(nsnull)
{
NS_ADDREF(mAtom);
if (nsnull != aCopy.mNext) {
mNext = new nsClassList(*(aCopy.mNext));
}

View File

@ -177,6 +177,7 @@ struct nsClassList {
: mAtom(aCopy.mAtom),
mNext(nsnull)
{
NS_ADDREF(mAtom);
if (nsnull != aCopy.mNext) {
mNext = new nsClassList(*(aCopy.mNext));
}