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:
Adam Fedor 2002-06-05 03:57:03 +00:00
parent d2c71f1834
commit 4e3086678d

View file

@ -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"];