[UI]: fix ASAN errors
This commit is contained in:
@@ -703,7 +703,8 @@ void EmulatorWindow::XMPConfigDialog::OnDraw(ImGuiIO& io) {
|
|||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|
||||||
if (!dialog_open) {
|
if (!dialog_open) {
|
||||||
emulator_window_.ToggleXMPConfigDialog();
|
Close();
|
||||||
|
emulator_window_.xmp_config_dialog_.release();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ void NoProfileDialog::OnDraw(ImGuiIO& io) {
|
|||||||
->profile_manager();
|
->profile_manager();
|
||||||
|
|
||||||
if (profile_manager->GetAccountCount()) {
|
if (profile_manager->GetAccountCount()) {
|
||||||
delete this;
|
Close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user