Memory leaks in DO fixed.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9557 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-04-11 12:30:32 +00:00
parent 9f640c6912
commit f254add6cb
5 changed files with 141 additions and 37 deletions

View file

@ -222,6 +222,7 @@ callframe_do_call_opts (const char *encoded_types,
/* Does the method have any arguments that are passed by reference?
If so, we need to encode them, since the method may have changed them. */
BOOL out_parameters = NO;
BOOL one_way = NO;
/* A dummy invocation to pass to the function that invokes our method */
NSInvocation_t *inv;
/* Signature information */
@ -440,6 +441,10 @@ callframe_do_call_opts (const char *encoded_types,
int dummy = 0;
(*encoder) (-1, (void*)&dummy, @encode(int), 0);
}
else
{
one_way = YES;
}
/* No return value to encode; do nothing. */
break;