[UI]: fix ASAN errors

This commit is contained in:
oltolm
2025-12-17 19:24:33 +01:00
committed by Radosław Gliński
parent 925c59790f
commit d78bc3a789
2 changed files with 3 additions and 2 deletions

View File

@@ -703,7 +703,8 @@ void EmulatorWindow::XMPConfigDialog::OnDraw(ImGuiIO& io) {
ImGui::End();
if (!dialog_open) {
emulator_window_.ToggleXMPConfigDialog();
Close();
emulator_window_.xmp_config_dialog_.release();
return;
}
}

View File

@@ -29,7 +29,7 @@ void NoProfileDialog::OnDraw(ImGuiIO& io) {
->profile_manager();
if (profile_manager->GetAccountCount()) {
delete this;
Close();
return;
}