Explorar o código

Fix a memory leak of ImGuiColumnsSet's Columns vector. ImVector doesn't call destructors.

Cory McWilliams %!s(int64=7) %!d(string=hai) anos
pai
achega
561e9f286e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      imgui.cpp

+ 2 - 0
imgui.cpp

@@ -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)