[Direct3D10/Direct3D11] Fix Resource.FromFile<T> and FromMemory<T> to use avoid invalid double-dispose
[Direct3D10/Direct3D11] Fix Resource.FromFile<T> and FromMemory<T> to use avoid invalid double-dispose

sharpdx/Toolkit,sharpdx/Toolkit,tomba/Toolkit