- Hands-On Design Patterns with Swift
- Florent Vilmart Giordano Scalzo Sergio De Simone
- 51字
- 2021-07-02 14:45:03
Release
Releasing an object causes the reference count to decrease. When the count of references or retainCount becomes 0, the object is deallocated.
Over-releasing is an issue where in an object gets released more than necessary, and could potentially be deallocated before the end of its expected lifespan.