diff --git a/content/xul/content/src/nsXULAttributes.h b/content/xul/content/src/nsXULAttributes.h index c0b6055bd1e..eb4d48702f2 100644 --- a/content/xul/content/src/nsXULAttributes.h +++ b/content/xul/content/src/nsXULAttributes.h @@ -45,7 +45,7 @@ class nsIURI; class nsClassList { public: nsClassList(nsIAtom* aAtom) - : mAtom(aAtom), mNext(nsnull) + : mAtom(getter_AddRefs(aAtom)), mNext(nsnull) { MOZ_COUNT_CTOR(nsClassList); } diff --git a/rdf/content/src/nsXULAttributes.h b/rdf/content/src/nsXULAttributes.h index c0b6055bd1e..eb4d48702f2 100644 --- a/rdf/content/src/nsXULAttributes.h +++ b/rdf/content/src/nsXULAttributes.h @@ -45,7 +45,7 @@ class nsIURI; class nsClassList { public: nsClassList(nsIAtom* aAtom) - : mAtom(aAtom), mNext(nsnull) + : mAtom(getter_AddRefs(aAtom)), mNext(nsnull) { MOZ_COUNT_CTOR(nsClassList); }