commit | 561e9f286eee47f3a651f2bb3a1f6d021179e7ee | [log] [tgz] |
---|---|---|
author | Cory McWilliams <cmcwilliams@velanstudios.com> | Tue Jan 02 10:46:20 2018 -0500 |
committer | Cory McWilliams <cmcwilliams@velanstudios.com> | Tue Jan 02 10:46:20 2018 -0500 |
tree | 4d60d737191741926d0e7b9a8650c117814cc023 | |
parent | 170bcb2d7c247595761bfb07b36755aa6541f4cf [diff] |
Fix a memory leak of ImGuiColumnsSet's Columns vector. ImVector doesn't call destructors.
diff --git a/imgui.cpp b/imgui.cpp index b9ceb11..2b6b699 100644 --- a/imgui.cpp +++ b/imgui.cpp
@@ -1876,6 +1876,8 @@ { IM_DELETE(DrawList); IM_DELETE(Name); + for (int i = 0; i != ColumnsStorage.Size; i++) + ColumnsStorage[i].~ImGuiColumnsSet(); } ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end)