fix a ref counting bug with class atoms

git-svn-id: svn://10.0.0.236/trunk@16759 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1998-12-21 18:38:44 +00:00
parent e14ddad715
commit 8e05bf08c4
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));
}