[UI]: fix ASAN errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ void NoProfileDialog::OnDraw(ImGuiIO& io) {
|
||||
->profile_manager();
|
||||
|
||||
if (profile_manager->GetAccountCount()) {
|
||||
delete this;
|
||||
Close();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user