Added code for printing out unfreed d3d object