Bug 1168170 - Mark reference counted members of nsTimerImpl::mCallback as MOZ_OWNING_REF. r=froydnj

This commit is contained in:
Michael Layzell 2015-05-28 10:14:00 -04:00
parent 0c3fceaad7
commit 9fbdf37e6d

View File

@ -116,8 +116,9 @@ private:
union CallbackUnion
{
nsTimerCallbackFunc c;
nsITimerCallback* i;
nsIObserver* o;
// These refcounted references are managed manually, as they are in a union
nsITimerCallback* MOZ_OWNING_REF i;
nsIObserver* MOZ_OWNING_REF o;
} mCallback;
// Some callers expect to be able to access the callback while the