Fix leaked FFI structure argument/returntype information

This commit is contained in:
rfm 2024-11-15 15:43:47 +00:00
parent 2f9f0d6761
commit bdad4987ae
6 changed files with 79 additions and 59 deletions

View file

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