Handle reference counts in one function: release().