Skip to content

Commit

Permalink
Fix memory leak in profiles sample (#1224)
Browse files Browse the repository at this point in the history
The 'textures' vector wasn't being cleaned up
  • Loading branch information
gary-sweet authored Nov 18, 2024
1 parent ca46376 commit 70f2fd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/tooling/profiles/profiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Profiles::~Profiles()
{
// Clean up used Vulkan resources
// Note : Inherited destructor cleans up resources stored in base class
for (auto &tex : textures)
vkFreeMemory(get_device().get_handle(), tex.memory, nullptr);

vkDestroyPipeline(get_device().get_handle(), pipeline, nullptr);

Expand Down

0 comments on commit 70f2fd9

Please sign in to comment.