Fix resource leak in DX11.