macosx: release allocated objects.