Retained parent links lead to cycles #23

snej opened this Issue May 4, 2012 · 0 comments


None yet
1 participant

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