From 9daac64ff810d5237e1256c9192a66b8aac06cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 10 Nov 2017 22:59:06 -0800 Subject: [PATCH] Clean g.WindowsById storage on shutdown. --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index dc501d46..2a5195fe 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2462,6 +2462,7 @@ void ImGui::Shutdown() g.WindowsSortBuffer.clear(); g.CurrentWindow = NULL; g.CurrentWindowStack.clear(); + g.WindowsById.Clear(); g.NavWindow = NULL; g.HoveredWindow = NULL; g.HoveredRootWindow = NULL;