VirtualBox

Changeset 90623 in vbox for trunk/src/libs


Ignore:
Timestamp:
Aug 11, 2021 10:25:34 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146234
Message:

libs/XPCOM: More object initialization needed for Python >= 3.9 (follow-up to r146127). bugref:10079

Location:
trunk/src/libs/xpcom18a4/python/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/PyIID.cpp

    r90523 r90623  
    269269        _Py_NewReference(this);
    270270#endif
     271#if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up. @bugref{10079} */
     272    PyObject_Init(this, ob_type);
     273#endif
     274
    271275        m_iid = riid;
    272276}
  • trunk/src/libs/xpcom18a4/python/src/PyISupports.cpp

    r90523 r90623  
    149149        _Py_NewReference(this);
    150150#endif
     151#if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up. @bugref{10079} */
     152    PyObject_Init(this, ob_type);
     153#endif
    151154
    152155#ifdef VBOX_DEBUG_LIFETIMES
  • trunk/src/libs/xpcom18a4/python/src/TypeObject.cpp

    r90523 r90623  
    438438        _Py_NewReference(this);
    439439# endif
     440# if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up. @bugref{10079} */
     441    PyObject_Init(this, ob_type);
     442# endif
    440443
    441444#endif /* Py_LIMITED_API */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette