Add SF patch #342 fix some director classes crashing on object deletion when using -builtin.

Fixes SF bug #1301 and python test cases director_basic and
director_classic seg faulting when used with -builtin.

Patch from Christian Delbaere.
This commit is contained in:
William S Fulton 2013-07-01 19:23:10 +01:00
commit 0058eea3ad
2 changed files with 9 additions and 1 deletions

View file

@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release.
Version 2.0.11 (in progress) Version 2.0.11 (in progress)
============================ ============================
2013-08-01: wsfulton
[Python] Add SF patch #342 from Christian Delbaere to fix some director classes crashing on
object deletion when using -builtin. Fixes SF bug #1301.
2013-07-11: wsfulton 2013-07-11: wsfulton
[Python] Add SWIG_PYTHON_INTERPRETER_NO_DEBUG macro which can be defined to use the Release version [Python] Add SWIG_PYTHON_INTERPRETER_NO_DEBUG macro which can be defined to use the Release version
of the Python interpreter in Debug builds of the wrappers. The Visual Studio .dsp example of the Python interpreter in Debug builds of the wrappers. The Visual Studio .dsp example

View file

@ -13,7 +13,11 @@ wrapper##_closure(PyObject *a) { \
PyObject *o = wrapper(a, NULL); \ PyObject *o = wrapper(a, NULL); \
Py_XDECREF(o); \ Py_XDECREF(o); \
} \ } \
PyObject_Del(a); \ if (PyType_IS_GC(a->ob_type)) { \
PyObject_GC_Del(a); \
} else { \
PyObject_Del(a); \
} \
} }
#define SWIGPY_INQUIRY_CLOSURE(wrapper) \ #define SWIGPY_INQUIRY_CLOSURE(wrapper) \