free object on destruction

This commit is contained in:
Greg Wells
2025-05-29 13:08:13 -04:00
parent 32f49ebe97
commit 886e6b50c9
2 changed files with 2 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ void gnDestroyOutputDeviceFn(gnOutputDevice* device) {
[device->outputDevice->queues[i] release]; [device->outputDevice->queues[i] release];
} }
[device->outputDevice->device release]; [device->outputDevice->device release];
free(device->outputDevice);
} }
// struct mtlFramebufferVertex { // struct mtlFramebufferVertex {

View File

@@ -83,5 +83,5 @@ gnReturnCode gnCreateShaderModuleFn(struct gnShaderModule_t *module, struct gnOu
} }
void gnDestroyShaderModuleFn(struct gnShaderModule_t* module) { void gnDestroyShaderModuleFn(struct gnShaderModule_t* module) {
free(module->shaderModule);
} }