Refnanny fix
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 29 Jan 2009 21:20:08 +0000 (22:20 +0100)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 29 Jan 2009 21:20:08 +0000 (22:20 +0100)
Cython/Compiler/ExprNodes.py

index f55c715cd8570a59d84c04b2dcaadba95ad51f75..0c4d8d89ee0836446eeb707a7315f84b7932240e 100644 (file)
@@ -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;" % (