aboutsummaryrefslogtreecommitdiff
path: root/cube
diff options
context:
space:
mode:
Diffstat (limited to 'cube')
-rw-r--r--cube/cube.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cube/cube.c b/cube/cube.c
index e4d59fa0..ff4d5a6f 100644
--- a/cube/cube.c
+++ b/cube/cube.c
@@ -1381,6 +1381,10 @@ static void demo_prepare_buffers(struct demo *demo) {
demo->next_present_id = 1;
}
+ if (NULL != swapchainImages) {
+ free(swapchainImages);
+ }
+
if (NULL != presentModes) {
free(presentModes);
}
@@ -3473,6 +3477,7 @@ static void demo_init_vk_swapchain(struct demo *demo) {
demo->format = surfFormats[0].format;
}
demo->color_space = surfFormats[0].colorSpace;
+ free(surfFormats);
demo->quit = false;
demo->curFrame = 0;