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
Родитель 4d7b75425a
Коммит ab4019ac55
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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