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:
parent
d72e3dd899
commit
0058eea3ad
2 changed files with 9 additions and 1 deletions
|
|
@ -13,7 +13,11 @@ wrapper##_closure(PyObject *a) { \
|
|||
PyObject *o = wrapper(a, NULL); \
|
||||
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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue