mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
Fix leaks
This commit is contained in:
parent
cf8c387900
commit
6f7a4d74c2
3 changed files with 12 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue