Allow NULL clear function when releasing references