and also to later release the ownership of the pointer object. This was needed for SWIG interaction. llvm-svn: 138133