From baa1cf54704407154b1a4ea5325cb643d42532a3 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 12 Mar 2022 09:53:22 +1300 Subject: [PATCH] Ensure End() is called after Begin/BeginChild, regardless of return value Note this is not required for other Begin apis --- src/core/hle/DSOUND/DirectSound/DirectSoundGlobal.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/hle/DSOUND/DirectSound/DirectSoundGlobal.cpp b/src/core/hle/DSOUND/DirectSound/DirectSoundGlobal.cpp index ba96b6159..b4862eeb8 100644 --- a/src/core/hle/DSOUND/DirectSound/DirectSoundGlobal.cpp +++ b/src/core/hle/DSOUND/DirectSound/DirectSoundGlobal.cpp @@ -150,11 +150,10 @@ void DSound_DrawBufferVisualization(bool is_focus, bool* p_show, ImGuiWindowFlag ImGui::PopID(); } - ImGui::EndChild(); } - - ImGui::End(); + ImGui::EndChild(); } + ImGui::End(); } void DSound_PrintStats(bool is_focus, ImGuiWindowFlags input_handler, bool m_show_audio_stats) @@ -252,7 +251,7 @@ void DSound_PrintStats(bool is_focus, ImGuiWindowFlags input_handler, bool m_sho ImGui::Text("Total active DSStream = %u", isActive); } } - ImGui::End(); } + ImGui::End(); } }