windowscodecs: Fix leak in test_QueryCapability.