Approving because this is strictly an improvement, but this cleanup path is gross to begin with. It would be better if we release the wined3d texture last. It won't be destroyed because the ddraw surface is holding a reference to it, so the code works anyway, but it looks wrong.