зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
724df40620
Коммит
828e1b8a82
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче