free object on destruction
This commit is contained in:
@@ -95,6 +95,7 @@ void gnDestroyOutputDeviceFn(gnOutputDevice* device) {
|
||||
[device->outputDevice->queues[i] release];
|
||||
}
|
||||
[device->outputDevice->device release];
|
||||
free(device->outputDevice);
|
||||
}
|
||||
|
||||
// struct mtlFramebufferVertex {
|
||||
|
@@ -83,5 +83,5 @@ gnReturnCode gnCreateShaderModuleFn(struct gnShaderModule_t *module, struct gnOu
|
||||
}
|
||||
|
||||
void gnDestroyShaderModuleFn(struct gnShaderModule_t* module) {
|
||||
|
||||
free(module->shaderModule);
|
||||
}
|
||||
|
Reference in New Issue
Block a user