Fix #105148: Cycles Metal memory leak on AMD GPU

After NanoVDB support from 02c2970982, this line should not have been
removed.
This commit is contained in:
Brecht Van Lommel
2023-04-03 17:46:32 +02:00
parent 7a1ec82af4
commit 4cb670e68f

View File

@@ -809,6 +809,7 @@ void MetalDevice::generic_free(device_memory &mem)
mem.shared_pointer = 0;
/* Free device memory. */
delayed_free_list.push_back(mmem.mtlBuffer);
mmem.mtlBuffer = nil;
}