Merge pull request #1529 from unprompted/master

Fix a memory leak of ImGuiColumnsSet's Columns vector.  ImVector doesn't call destructors.
This commit is contained in:
omar 2018-01-02 17:21:17 +01:00 committed by GitHub
commit bfc9c5216a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1876,6 +1876,8 @@ ImGuiWindow::~ImGuiWindow()
{
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)