Henri Verbeet : d3d10: Introduce a helper function to allocate arrays (AFL ).