mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 15:11:05 +01:00 
			
		
		
		
	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:
		@@ -1876,6 +1876,8 @@ ImGuiWindow::~ImGuiWindow()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    IM_DELETE(DrawList);
 | 
					    IM_DELETE(DrawList);
 | 
				
			||||||
    IM_DELETE(Name);
 | 
					    IM_DELETE(Name);
 | 
				
			||||||
 | 
					    for (int i = 0; i != ColumnsStorage.Size; i++)
 | 
				
			||||||
 | 
					        ColumnsStorage[i].~ImGuiColumnsSet();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end)
 | 
					ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user