Remove unnecessary if (ptr) delete ptr.release().get() of CachedUniquePtr.
- Remove unnecessary if (ptr) delete ptr.release().get() of CachedUniquePtr.
- Use ptr.release().reset() instead of delete ptr.release().get().
- Avoid duplicated operation.
Edited by Susumu Oda