Skip to content

Conversation

@nlutsenko
Copy link
Contributor

There is a leak here, we are referencing an ivar, which is implicitly referencing self inside a BFExecutor, which is also retained by self.
Fixed simply by using a shared queue pointer, which eliminates reference to self. Verified via Instruments.app both on iPhone 6S and Simulator.

Fixes #626.

@richardjrossiii
Copy link
Contributor

Yep. Good catch. We really should turn on the warning for implicit capture of self...

nlutsenko added a commit that referenced this pull request Dec 8, 2015
Fix memory leak in PFSQLiteDatabase.
@nlutsenko nlutsenko merged commit fc12b94 into master Dec 8, 2015
@nlutsenko nlutsenko deleted the nlutsenko.leak branch December 8, 2015 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants