From 920a8f1a516ac6a8b719c8322140abb1be478c6e Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 16 Jul 2008 03:55:53 -0700 Subject: [PATCH] cpdef cleanup (for safety) --- Cython/Compiler/Nodes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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): -- 2.26.2