Fix leaks

This commit is contained in:
rfm 2025-01-09 09:19:03 +00:00
parent cf8c387900
commit 6f7a4d74c2
3 changed files with 12 additions and 5 deletions

View file

@ -837,7 +837,7 @@ _arg_addr(NSInvocation *inv, int index)
+ (NSInvocation*) _returnInvocationAndDestroyProxy: (id)proxy
{
NSInvocation *inv = [proxy _invocation];
NSDeallocateObject(proxy);
[proxy dealloc];
return inv;
}
@end
@ -888,6 +888,11 @@ _arg_addr(NSInvocation *inv, int index)
o->target = RETAIN(t);
return o;
}
- (void) dealloc
{
DESTROY(target);
NSDeallocateObject(self);
}
- (NSInvocation*) _invocation
{
return invocation;