Add missing dealloc messages to obj-c wrappers

This commit is contained in:
Jake Turner authored and Baldur Karlsson committed 2022-03-25 10:24:22 +00:00
1 parent d4cf31689e
commit 260ecd28f6
3 files changed
+18

No files matched your search

@@ -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
{