fix for python 2.3 and gc_refs issue reported by Luigi
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cf3d3edba9
commit
5b98331c41
1 changed files with 1 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ PySwigClientData_New(PyObject* obj)
|
|||
PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
|
||||
/* the klass element */
|
||||
data->klass = obj;
|
||||
Py_INCREF(obj);
|
||||
Py_INCREF(data->klass);
|
||||
/* the newraw method and newargs arguments used to create a new raw instance */
|
||||
if (PyClass_Check(obj)) {
|
||||
data->newraw = 0;
|
||||
|
|
@ -317,7 +317,6 @@ PySwigClientData_New(PyObject* obj)
|
|||
SWIGRUNTIME void
|
||||
PySwigClientData_Del(PySwigClientData* data)
|
||||
{
|
||||
Py_XDECREF(data->klass);
|
||||
Py_XDECREF(data->newraw);
|
||||
Py_XDECREF(data->newargs);
|
||||
Py_XDECREF(data->destroy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue