Roger noticed that in the generated SWIG code, most converters return NULL, even if other args required cleanup. This can be fixed but (a) it relies on args being initialized and (b) it may cause bloat.
Re a), Roger also notes in win32gui will need some
work, though. The freearg section for STRING_OR_ATOM_CW checks the result, but HWND doesn't have in initializer. b) can somewhat be mitigated by using "optimize for size" for these files. Both these combined cause too much risk for build 211, so adding the patch here. Note the patch does most of pywintypes.i, but we need to check the others.
Roger noticed that in the generated SWIG code, most converters return NULL, even if other args required cleanup. This can be fixed but (a) it relies on args being initialized and (b) it may cause bloat.
Re a), Roger also notes in win32gui will need some work, though. The freearg section for STRING_OR_ATOM_CW checks the result, but HWND doesn't have in initializer. b) can somewhat be mitigated by using "optimize for size" for these files. Both these combined cause too much risk for build 211, so adding the patch here. Note the patch does most of pywintypes.i, but we need to check the others.
Reported by: mhammond
Original Ticket: "pywin32/bugs/353":https://sourceforge.net/p/pywin32/bugs/353