You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
Does it make sense to implement a Drop trait for NSAutoreleasePool, so it is called whenever NSAutoreleasePool goes out of scope. It turns out that if the user does not call NSAutoreleasePool::drain() / NSAutoreleasePool::release() manually, the memory will be leaked (by the way the examples from the repository do not call drain, release as well).
The text was updated successfully, but these errors were encountered:
Does it make sense to implement a
Drop
trait forNSAutoreleasePool
, so it is called wheneverNSAutoreleasePool
goes out of scope. It turns out that if the user does not callNSAutoreleasePool::drain()
/NSAutoreleasePool::release()
manually, the memory will be leaked (by the way the examples from the repository do not calldrain
,release
as well).The text was updated successfully, but these errors were encountered: