commit | a16d8a5deb4f927f9409613d33d43106e4621f07 | [log] [tgz] |
---|---|---|
author | Mark Lobodzinski <mark@lunarg.com> | Thu Oct 29 14:23:47 2015 -0600 |
committer | Mark Lobodzinski <mark@lunarg.com> | Thu Oct 29 16:38:11 2015 -0600 |
tree | df01c47f9eed7e7661b770c6ca65eb6a7d3b34ec | |
parent | 9eb1ce47906c414d1df2b42f3e05a441297ba205 [diff] [blame] |
demos: Properly destroy command pool in cube demo
diff --git a/demos/cube.c b/demos/cube.c index 7106266..9f4ed4c 100644 --- a/demos/cube.c +++ b/demos/cube.c
@@ -1909,6 +1909,7 @@ vkDestroyImageView(demo->device, demo->buffers[i].view); vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->buffers[i].cmd); } + vkDestroyCommandPool(demo->device, demo->cmd_pool); free(demo->buffers); vkDestroyCommandPool(demo->device, demo->cmd_pool);