[pywin32-checkins] pywin32/com/win32comext/shell/src PyIContextMenu.cpp, 1.6, 1.7
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-08-07 07:42:48
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4469 Modified Files: PyIContextMenu.cpp Log Message: Fix leak of result in PyGContextMenu::QueryContextMenu Index: PyIContextMenu.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/PyIContextMenu.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PyIContextMenu.cpp 3 Jun 2007 14:53:07 -0000 1.6 --- PyIContextMenu.cpp 7 Aug 2008 07:41:33 -0000 1.7 *************** *** 147,150 **** --- 147,151 ---- if (PyInt_Check(ret)) hr = MAKE_HRESULT(SEVERITY_SUCCESS, 0, PyInt_AsLong(ret)); + Py_DECREF(ret); return hr; } |