Retained parent links lead to cycles #23

Open
snej opened this Issue May 4, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@snej
Member

snej commented May 4, 2012

RESTResource objects retain their _parent. This made sense at the time, but it leads to refcount cycles in situations where a parent needs to retain a child. This happens in:

  • CouchServer's reference to _replicationsQuery
  • CouchDocument's reference to _currentRevision

This is causing memory leaks — the object tree never gets dealloced.

goodwithgit added a commit to safedoorpm/CouchCocoa that referenced this issue Apr 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment