[PATCH v5 03/11] d3dx10/tests: Fix texture leak in check_resource_data.