Keep a reference to the stream passed to wx.FSFile

This commit is contained in:
Robin Dunn
2019-10-22 16:07:06 -07:00
parent edaf5c96d7
commit afcd5f2d97
3 changed files with 4 additions and 4 deletions

View File

@@ -96,7 +96,6 @@ protected:
o = bufsize;
memcpy((char*)buffer, PyBytes_AsString(result), o); // strings only, not unicode...
Py_DECREF(result);
}
else
m_lasterror = wxSTREAM_READ_ERROR;