mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
Fix leaked FFI structure argument/returntype information
This commit is contained in:
parent
2f9f0d6761
commit
bdad4987ae
6 changed files with 79 additions and 59 deletions
|
@ -27,6 +27,7 @@
|
|||
#import "Foundation/NSInvocation.h"
|
||||
|
||||
@class NSMutableData;
|
||||
@class NSPointerArray;
|
||||
|
||||
typedef struct {
|
||||
int offset;
|
||||
|
@ -39,13 +40,17 @@ typedef struct {
|
|||
} NSArgumentInfo;
|
||||
|
||||
|
||||
@interface GSFFIInvocation : NSInvocation
|
||||
@interface GSFFIInvocation : NSInvocation
|
||||
{
|
||||
@public
|
||||
uint8_t _retbuf[32]; // Store return values of up to 32 bytes here.
|
||||
NSMutableData *_frame;
|
||||
uint8_t _retbuf[32]; // Return values of up to 32 bytes here.
|
||||
NSMutableData *_frame; // Frame information for invoking.
|
||||
NSPointerArray *_extra; // Extra FFI data to be released.
|
||||
}
|
||||
@end
|
||||
@interface GSFFIInvocation (FFI)
|
||||
- (void) setupFrameFFI: (NSMethodSignature*)sig;
|
||||
@end
|
||||
|
||||
@interface GSFFCallInvocation : NSInvocation
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue