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.
Any way the face detector isn't releasing its memory?