From e75b253c050a5a0658dfab72cb0783f1f4a09b81 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 24 Aug 2008 20:14:57 +0200 Subject: Interpreter: Fix a couple of really stupid bugs. --- MLKInterpreter.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'MLKInterpreter.m') diff --git a/MLKInterpreter.m b/MLKInterpreter.m index f85bf21..de493fb 100644 --- a/MLKInterpreter.m +++ b/MLKInterpreter.m @@ -45,6 +45,7 @@ #import #import #import +#import #include @@ -256,9 +257,6 @@ values = [self interpretBodyWithEnvironment:env]; - [MLKDynamicContext popContext]; - LRELEASE (newctx); - NS_VALUERETURN (values, NSArray *); } NS_HANDLER @@ -282,6 +280,9 @@ } NS_ENDHANDLER; + [MLKDynamicContext popContext]; + LRELEASE (newctx); + return nil; } @end @@ -304,7 +305,7 @@ NSMutableArray *argtypes = [NSMutableArray array]; int i; - for (i = 0; i++; i < _argc) + for (i = 0; i < _argc; i++) [argtypes addObject:[NSNumber numberWithInt:_argumentTypes[i]]]; RETURN_VALUE (LAUTORELEASE ([[MLKForeignProcedure alloc] -- cgit v1.2.3