d3dx9/tests: Only release a texture when it was created.