fixed refcount leak in CreateNewWindow() and CreateWindowFromResource().

This commit is contained in:
Just van Rossum 2002-06-05 17:41:03 +00:00
parent aee2d5f975
commit 84fca948c8
2 changed files with 9 additions and 2 deletions

View file

@ -136,6 +136,13 @@ class MyScanner(Scanner):
([("void", "wStorage", "OutMode")],
[("NullStorage", "*", "InMode")]),
# match FindWindowOfClass
([("WindowRef", "outWindow", "OutMode"), ("WindowPartCode", "outWindowPart", "OutMode")],
[("ExistingWindowPtr", "*", "OutMode"), ("WindowPartCode", "outWindowPart", "OutMode")]),
# then match CreateNewWindow and CreateWindowFromResource
([("WindowRef", "outWindow", "OutMode")],
[("WindowRef", "*", "*")]),
([("WindowPtr", "*", "OutMode")],
[("ExistingWindowPtr", "*", "*")]),
([("WindowRef", "*", "OutMode")], # Same, but other style headerfiles