mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Typo fix allocating closure
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13775 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d2c71f1834
commit
4e3086678d
1 changed files with 1 additions and 3 deletions
|
@ -147,7 +147,6 @@ static IMP gs_objc_msg_forward (SEL sel)
|
|||
const char *sel_type;
|
||||
cifframe_t *cframe;
|
||||
ffi_closure *cclosure;
|
||||
NSMutableData *amemory;
|
||||
|
||||
NSMethodSignature *sig;
|
||||
|
||||
|
@ -172,8 +171,7 @@ static IMP gs_objc_msg_forward (SEL sel)
|
|||
worry about freeing it */
|
||||
cframe = cifframe_from_info([sig methodInfo], [sig numberOfArguments], NULL);
|
||||
/* Autorelease the closure through fastMallocBuffer */
|
||||
amemory = _fastMallocBuffer(sizeof(ffi_closure));
|
||||
cclosure = [amemory mutableBytes];
|
||||
cclosure = (ffi_closure *)_fastMallocBuffer(sizeof(ffi_closure));
|
||||
if (cframe == NULL || cclosure == NULL)
|
||||
{
|
||||
[NSException raise: NSMallocException format: @"Allocating closure"];
|
||||
|
|
Loading…
Reference in a new issue