Add missing dealloc messages to obj-c wrappers

This commit is contained in:
Jake Turner
2022-03-22 04:57:27 +00:00
committed by Baldur Karlsson
parent d4cf31689e
commit 260ecd28f6
3 changed files with 18 additions and 0 deletions
@@ -34,6 +34,12 @@
return id<MTLCommandQueue>(Unwrap(self.wrappedCPP));
}
- (void)dealloc
{
self.wrappedCPP->Dealloc();
[super dealloc];
}
// Use the real MTLCommandQueue to find methods from messages
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
@@ -42,6 +42,12 @@
return id<MTLDevice>(Unwrap(self.wrappedCPP));
}
- (void)dealloc
{
self.wrappedCPP->Dealloc();
[super dealloc];
}
// Use the real MTLDevice to find methods from messages
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
@@ -34,6 +34,12 @@
return id<MTLLibrary>(Unwrap(self.wrappedCPP));
}
- (void)dealloc
{
self.wrappedCPP->Dealloc();
[super dealloc];
}
// Use the real MTLLibrary to find methods from messages
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{