saghul/pyuv — pull request #162 by geertj (2014-06-09 09:40:02+00:00)
Title: Fix 2 refcounting bugs in StdIO

Fix 2 nasty refcounting bugs in StdIO.

I don't understand the supposed logic behind the use of the "tmp" variable. Maybe this is some kind of cut and paste error? The stream is set once in the constructor and cannot be updated. So self->stream would always be NULL before setting it in tp_init.

The tp_getset bug is a simple forgotten INCREF. Just to be sure I checked all use of tp_getsets in pyuv and apart from this one they are all fine.