Bug 1123109 - Mark nsStaticAtom::mStringBuffer as non-owning; r=froydnj

This commit is contained in:
Ehsan Akhgari 2015-01-18 13:57:20 -05:00
parent f0e632186b
commit cfc3bde8b2

View File

@ -22,7 +22,9 @@ typedef char16_t nsStaticAtomStringType;
*/
struct nsStaticAtom
{
nsStringBuffer* mStringBuffer;
// mStringBuffer points to the string buffer for a permanent atom, and is
// therefore safe as a non-owning reference.
nsStringBuffer* MOZ_NON_OWNING_REF mStringBuffer;
nsIAtom** mAtom;
};