Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Retained parent links lead to cycles #23

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

Retained parent links lead to cycles #23

snej opened this issue May 4, 2012 · 0 comments

Comments

@snej
Copy link
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant