Fix crashes and leaks in Azure and Skia

Fixes #979.
auto merge of #996 : kmcallister/servo/azure-skia-fixes, r=larsbergstrom

Fixes #979.