mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-28 04:12:03 +00:00
Fixed exclude page crashing (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/135)
This commit is contained in:
parent
752ca376c4
commit
8e34b5fbd3
2 changed files with 3 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,6 +11,7 @@ switch/
|
|||
*.bin
|
||||
*.nsp
|
||||
*.psd
|
||||
*.bak
|
||||
resources/i18n/zh-Hans
|
||||
resources/i18n/zh-Hant
|
||||
resources/i18n/en-GB
|
||||
|
|
|
@ -235,16 +235,15 @@ void AppPage_Exclude::PopulatePage()
|
|||
listItem->setThumbnail(controlData->icon, sizeof(controlData->icon));
|
||||
items.insert(std::make_pair(listItem, util::formatApplicationId(tid)));
|
||||
list->addView(listItem);
|
||||
|
||||
free(controlData);
|
||||
}
|
||||
delete[] records;
|
||||
free(controlData);
|
||||
}
|
||||
}
|
||||
else {
|
||||
label = new brls::Label(brls::LabelStyle::SMALL, "menus/common/applet_mode_not_supported"_i18n, true);
|
||||
list->addView(label);
|
||||
}
|
||||
delete[] records;
|
||||
|
||||
list->registerAction("menus/cheats/exclude_titles_save"_i18n, brls::Key::B, [this] {
|
||||
std::set<std::string> exclude;
|
||||
|
@ -298,4 +297,3 @@ void AppPage_DownloadedCheats::GetExistingCheatsTids() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue