Skip to content
Snippets Groups Projects
Commit a39e9e9f authored by Sébastien Blin's avatar Sébastien Blin
Browse files

utilsadapter: avoir use-after-free from ASAN

Change-Id: Ic3328ea069af093d412abd7fea29a2df199c1052
parent 70446275
No related branches found
No related tags found
No related merge requests found
......@@ -478,7 +478,7 @@ UtilsAdapter::supportedLang()
for (const auto& f : trFiles) {
auto match = regex.indexIn(f);
if (regex.capturedTexts().size() == 2) {
const auto& l = regex.capturedTexts()[1];
auto l = regex.capturedTexts()[1];
auto nativeName = QLocale(l).nativeLanguageName();
if (nativeName.isEmpty()) // If a locale doesn't have any nativeLanguageName, ignore it.
continue;
......@@ -693,7 +693,6 @@ UtilsAdapter::useApplicationTheme()
return isSystemThemeDark();
}
bool
UtilsAdapter::hasNativeDarkTheme() const
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment