Skip to content

Commit db82adf

Browse files
committed
Destroy in the busy samples
1 parent 77848bc commit db82adf

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

busybuffers/sources/main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,12 @@ int kickstart(int argc, char **argv) {
185185

186186
kore_start();
187187

188+
kong_destroy_everything_set(&everything);
189+
constants_type_buffer_destroy(&constants);
190+
kore_gpu_buffer_destroy(&indices);
191+
kong_destroy_buffer_vertex_in(&vertices);
192+
kore_gpu_command_list_destroy(&list);
193+
kore_gpu_device_destroy(&device);
194+
188195
return 0;
189196
}

busydescriptors/sources/main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,14 @@ int kickstart(int argc, char **argv) {
193193

194194
kore_start();
195195

196+
kong_destroy_everything_set(&everything);
197+
for (uint32_t constants_index = 0; constants_index < 4; ++constants_index) {
198+
constants_type_buffer_destroy(&constants[constants_index]);
199+
}
200+
kore_gpu_buffer_destroy(&indices);
201+
kong_destroy_buffer_vertex_in(&vertices);
202+
kore_gpu_command_list_destroy(&list);
203+
kore_gpu_device_destroy(&device);
204+
196205
return 0;
197206
}

0 commit comments

Comments
 (0)