Bug 1598656 - Ensure RoUninitialize is not called until after the COMPtr<>s have been released. r=emk

Differential Revision: https://phabricator.services.mozilla.com/D54505

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jonathan Kew 2019-11-25 13:55:05 +00:00
Родитель 724df40620
Коммит 828e1b8a82
1 изменённых файлов: 5 добавлений и 6 удалений

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

@ -65,12 +65,11 @@ bool OSPreferences::ReadSystemLocales(nsTArray<nsCString>& aLocaleList) {
}
}
}
// Only close the runtime if we successfully initialized it above,
// otherwise we assume it was already in use and should be left as is.
if (SUCCEEDED(inited)) {
RoUninitialize();
}
}
// Only close the runtime if we successfully initialized it above,
// otherwise we assume it was already in use and should be left as is.
if (SUCCEEDED(inited)) {
RoUninitialize();
}
}
#endif