I noticed that every call to PyIMAPIProp.GetPropList() causes the ref count for Py_None to increase by one. Can someone comment on whether the following patch seems correct, or if more might be needed?
Thanks, -nick --- a/com/win32comext/mapi/src/mapilib.i +++ b/com/win32comext/mapi/src/mapilib.i @@ -501,6 +501,8 @@ } %typemap(python,argout) SPropTagArray **OUTPUT { + if ($target == Py_None) + Py_DECREF($target); $target = PyMAPIObject_FromSPropTagArray(*$source); if ($target==NULL) { $cleanup;
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32