[PATCH v4 1/9] d3dx10/tests: Fix texture leak in check_resource_data.