[Bug 36339] valgrind shows a lot of leaks in ddraw/tests/d3d.c