X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e19b71646053a07255b308b24321837f8ea76176..b47c832e5529dc6c632536b4665a005f0a85aec8:/utils/wxPython/src/helpers.h diff --git a/utils/wxPython/src/helpers.h b/utils/wxPython/src/helpers.h index bcf992aca6..57f670fb19 100644 --- a/utils/wxPython/src/helpers.h +++ b/utils/wxPython/src/helpers.h @@ -179,6 +179,7 @@ public: private: PyObject* m_self; PyObject* m_lastFound; + int m_incRef; }; @@ -230,7 +231,7 @@ public: //--------------------------------------------------------------------------- #define PYPRIVATE \ - void _setSelf(PyObject* self, int incref=TRUE) { \ + void _setSelf(PyObject* self, int incref=1) { \ m_myInst.setSelf(self, incref); \ } \ private: wxPyCallbackHelper m_myInst;