File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ typedef struct {
3737 PyObject * seek ;
3838 PyObject * tell ;
3939 PyObject * close ;
40- PyObject * file ;
4140} pgRWHelper ;
4241
4342/*static const char pg_default_encoding[] = "unicode_escape";*/
@@ -412,7 +411,6 @@ _pg_rw_close(SDL_RWops *context)
412411 Py_XDECREF (helper -> write );
413412 Py_XDECREF (helper -> read );
414413 Py_XDECREF (helper -> close );
415- Py_XDECREF (helper -> file );
416414
417415 PyMem_Free (helper );
418416 PyGILState_Release (state );
@@ -445,9 +443,6 @@ pgRWops_FromFileObject(PyObject *obj)
445443 return (SDL_RWops * )PyErr_NoMemory ();
446444 }
447445
448- helper -> file = obj ;
449- Py_INCREF (obj );
450-
451446 /* Adding a helper to the hidden data to support file-like object RWops */
452447 rw -> hidden .unknown .data1 = (void * )helper ;
453448 rw -> size = _pg_rw_size ;
You can’t perform that action at this time.
0 commit comments