use new ref_get func in object cleanup for windows.