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
There seems to be a memory leak when repeatedly adding/removing KVO observers on an object.
The attached sample project demonstrates the issue.
Unzip, build and run app
Press "Update Name Property"
Launch Task Manager and look for "KVOBug.exe". Notice the memory continuously growing as the app is executing.
A lot of the memory allocation seems to occur in _addNestedObserversAndOptionallyDependents and _addKeyObserver, but then never gets freed when the observer is removed.
There seems to be a memory leak when repeatedly adding/removing KVO observers on an object.
The attached sample project demonstrates the issue.
A lot of the memory allocation seems to occur in
_addNestedObserversAndOptionallyDependents
and_addKeyObserver
, but then never gets freed when the observer is removed.KVOBug-memoryleak.zip
The text was updated successfully, but these errors were encountered: