Am 14.02.2017 um 22:29 schrieb Alex Henrie alexhenrie24@gmail.com:
Yes, I'll look into it. Sorry for not noticing the leak before.
Please port the test to ddraw2-7 as well, and in ddraw4 and ddraw7 test the IDirectDraw4/7 refcount after the create call that fails because of the invalid pointer. Windows might leak a reference. (If it does, I don’t think we want to upstream the test, but document this behaviour in a comment)
What happens if you have a create failure like DDERR_NOCOOPERATIVELEVELSET and an invalid pointer?