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:
Marcelo Matus 2005-12-12 00:22:08 +00:00
commit f9a3ea5c0d

View file

@ -311,7 +311,7 @@ PySwigObject_dealloc(PyObject *v)
PyTuple_SetItem(args,0,v);
res = ((*meth)(PyCFunction_GET_SELF(destroy), args));
PyTuple_SetItem(args,0,SWIG_Py_Void());
Py_DECREF(res);
Py_XDECREF(res);
} else {
const char *name = SWIG_TypePrettyName(ty);
PyObject *wrn = PyString_FromFormat("swig/python detected a memory leak of type '%s'.", name);