Use unique_ptr instead of OwningPtr.  I'm not certain how this compiled.