[pywin32-checkins] pywin32/win32/src PyOVERLAPPED.cpp,1.9,1.10
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-03-17 01:53:27
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6707 Modified Files: PyOVERLAPPED.cpp Log Message: OVERLAPPED objects did not release the reference to overlapped.object when it destroyed (ie, a reference leak) Index: PyOVERLAPPED.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/PyOVERLAPPED.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PyOVERLAPPED.cpp 28 Jun 2005 12:35:54 -0000 1.9 --- PyOVERLAPPED.cpp 17 Mar 2006 01:53:22 -0000 1.10 *************** *** 116,119 **** --- 116,122 ---- Py_XDECREF(m_obHandle); Py_XDECREF(m_overlapped.obState); + // set our memory to zero, so our clunky check for an invalid + // object in win32file has more chance of success. + memset(this, 0, sizeof(PyOVERLAPPED)); } *************** *** 203,209 **** /*static*/ void PyOVERLAPPED::deallocFunc(PyObject *ob) { - // set memory to zero, so our clunky check for an invalid object in - // win32file has more chance of success. - memset(ob, 0, sizeof(PyOVERLAPPED)); delete (PyOVERLAPPED *)ob; } --- 206,209 ---- |