[DirectWrite.Samples] Fixed CustomLayout sample
[Samples.Win8] fixed memory leak