mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fix a memory leak of ImGuiColumnsSet's Columns vector. ImVector doesn't call destructors.
This commit is contained in:
parent
170bcb2d7c
commit
561e9f286e
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue