Fix memory leaks in which CBReleaseObject wasn't being called
Reference counts weren't being decremented properly, but should now be
okay