Fix some leaking Cairo resources.