On Nov 24, 2013, at 2:23 PM, Thomas Tempelmann <notifications@github.com> wrote:

> In macoslib/CoreFoundation/CFType.rbbas:
> 
> >  		      return new CFType() // this gives a CFType object whose "IsNULL()" function returns true
> >  		    end if
> >  		    
> > -		    if not hasOwnership then
> > -		      Retain(ref)
> > -		      hasOwnership = true
> > -		    end if
> 
> I am only looking at the diff here, but it looks as if the Retain() code has been removed and the hasOwnership test is not existing any more!?
> 
> —
> Reply to this email directly or view it on GitHub.
> 


I did get rid of the shared Retain method.    The hasOwnership test still exists, though.  The code in AdoptNoVerify now looks like (comments omitted)

    self.mRef = ref
    
    if not hasOwnership then
      self.Retain()
    end if