4

I'm using CIDetector multiple times and memory usage is growing for every image in a project that uses ARC.

NSArray* features = [self.detector featuresInImage:ciimage options:detectorOptions];
...
// some code dealing with features
features = nil

I see in Instruments that ref count of features is always +1. I noticed that if added

self.detector = nil;

then memory goes down substantially and no listing of FaceCore in instruments.

enter image description here

Any way the face detector isn't releasing its memory?

jww
  • 97,681
  • 90
  • 411
  • 885
Avba
  • 14,822
  • 20
  • 92
  • 192
  • Which particular instrument are you using? To really get a picture of how much memory your app is using you should be using the Activity Monitor. – Guy Kogus Oct 03 '13 at 11:11
  • possible duplicate of [CIDetector isn't releasing memory](http://stackoverflow.com/questions/19156330/cidetector-isnt-releasing-memory) – Kevin Feb 13 '14 at 20:02

0 Answers0