Bug 1123000 - Mark nsDiscriminatedUnion::mInterfaceValue as owning; r=froydnj

This commit is contained in:
Ehsan Akhgari 2015-01-17 20:20:18 -05:00
parent 59d84203a2
commit d4a2ec7dbf

View File

@ -53,7 +53,10 @@ struct nsDiscriminatedUnion
nsACString* mCStringValue;
struct
{
nsISupports* mInterfaceValue;
// This is an owning reference that cannot be an nsCOMPtr because
// nsDiscriminatedUnion needs to be POD. AddRef/Release are manually
// called on this.
nsISupports* MOZ_OWNING_REF mInterfaceValue;
nsIID mInterfaceID;
} iface;
struct