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 4f8f88a90d
commit 0c1e071a73

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