Christian Costa : d3dxof: Make sure the returned object pointer is null when there is no more object .