Skip to content
Snippets Groups Projects
Unverified Commit 48de215d authored by Sascha Willems's avatar Sascha Willems Committed by GitHub
Browse files

Merge pull request #907 from rajnesh-kanwal/fix_memory_leak

Fixes memory leak due to ImGui context not being destroyed.
parents 92187b0c 774bb42c
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,9 @@ namespace vks
io.FontGlobalScale = scale;
}
UIOverlay::~UIOverlay() { }
UIOverlay::~UIOverlay() {
ImGui::DestroyContext();
}
/** Prepare all vulkan resources required to render the UI overlay */
void UIOverlay::prepareResources()
......@@ -397,7 +399,6 @@ namespace vks
void UIOverlay::freeResources()
{
ImGui::DestroyContext();
vertexBuffer.destroy();
indexBuffer.destroy();
vkDestroyImageView(device->logicalDevice, fontView, nullptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment