From 3e4841765df29eb928e226125ef826dc6137234d Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 7 Jul 2015 18:00:19 -0600 Subject: [PATCH] ImDrawList: winodw draw lists destructed properly on Shutdown() --- imgui.h | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.h b/imgui.h index 1e3b63b67..4dee2c018 100644 --- a/imgui.h +++ b/imgui.h @@ -1041,6 +1041,7 @@ struct ImDrawList ImVector path; // [Internal] current path building ImDrawList() { owner_name = NULL; Clear(); } + ~ImDrawList() { ClearFreeMemory(); } IMGUI_API void Clear(); IMGUI_API void ClearFreeMemory(); IMGUI_API void PushClipRect(const ImVec4& clip_rect); // Scissoring. The values are x1, y1, x2, y2.