From: Dag Sverre Seljebotn Date: Thu, 29 Jan 2009 21:20:08 +0000 (+0100) Subject: Refnanny fix X-Git-Tag: 0.11.rc~93^2~26^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ab847bb50b28a0010a70103be9eef489dceeccc5;p=cython.git Refnanny fix --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f55c715c..0c4d8d89 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2886,6 +2886,7 @@ class AttributeNode(NewTempExprNode): select_code = self.result() if self.type.is_pyobject: rhs.make_owned_reference(code) + code.put_giveref(rhs.py_result()) code.put_decref(select_code, self.ctype()) code.putln( "%s = %s;" % (