From f9a3ea5c0dcd1fd8d169d21bd3b9328d509bedb1 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 12 Dec 2005 00:22:08 +0000 Subject: [PATCH] oops, use XDECREF instead git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7974 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyrun.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 4e6e40f57..bd814da9d 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -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);