Connor McAdams : d3dx9: Refactor texture creation and cleanup in D3DXCreateTextureFromFileInMemoryEx().