From: Robert Bradshaw Date: Wed, 16 Jul 2008 10:55:53 +0000 (-0700) Subject: cpdef cleanup (for safety) X-Git-Tag: 0.9.8.1~123^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=920a8f1a516ac6a8b719c8322140abb1be478c6e;p=cython.git cpdef cleanup (for safety) --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index f868226b..711c6880 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1920,9 +1920,7 @@ class OverrideCheckNode(StatNode): function=self.func_node, args=[ExprNodes.NameNode(self.pos, name=arg.name) for arg in self.args[first_arg:]]) self.body = ReturnStatNode(self.pos, value=call_node) -# self.func_temp = env.allocate_temp_pyobject() self.body.analyse_expressions(env) -# env.release_temp(self.func_temp) def generate_execution_code(self, code): # Check to see if we are an extension type @@ -1946,7 +1944,7 @@ class OverrideCheckNode(StatNode): code.putln('if (!%s || %s) {' % (is_builtin_function_or_method, is_overridden)) self.body.generate_execution_code(code) code.putln('}') - code.put_decref(self.func_node.result_code, PyrexTypes.py_object_type) + code.put_decref_clear(self.func_node.result_code, PyrexTypes.py_object_type) code.putln("}") class ClassDefNode(StatNode, BlockNode):