oops, use XDECREF instead
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ef728b932e
commit
f9a3ea5c0d
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ PySwigObject_dealloc(PyObject *v)
|
||||||
PyTuple_SetItem(args,0,v);
|
PyTuple_SetItem(args,0,v);
|
||||||
res = ((*meth)(PyCFunction_GET_SELF(destroy), args));
|
res = ((*meth)(PyCFunction_GET_SELF(destroy), args));
|
||||||
PyTuple_SetItem(args,0,SWIG_Py_Void());
|
PyTuple_SetItem(args,0,SWIG_Py_Void());
|
||||||
Py_DECREF(res);
|
Py_XDECREF(res);
|
||||||
} else {
|
} else {
|
||||||
const char *name = SWIG_TypePrettyName(ty);
|
const char *name = SWIG_TypePrettyName(ty);
|
||||||
PyObject *wrn = PyString_FromFormat("swig/python detected a memory leak of type '%s'.", name);
|
PyObject *wrn = PyString_FromFormat("swig/python detected a memory leak of type '%s'.", name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue