I'm working on running some memory tests on one of my applications, and I was rather surprised when I ran into a huge leak on a view controller I had never seen leaking before. The profiler is not flagging it as a leak, but the memory continues to grow unbound every time I open and close a particular view controller.
It appears that view controller itself is getting released, but the views are sticking around.
Generally I would consider this an issue in my code, but I have run tests of the application in iOS 10.3 and 11.1 and the memory leak does not occur for either of those, and I don't have any code paths that should be executing differently for those iOS versions.
I have spent hours looking through our code, and don't see anything that I believe should cause the leak either. I'm beginning to think that there is a bug in iOS 11.2, or perhaps a bug in the profiler.
So, to get to my question, are there any bugs in iOS 11.2 or in the profiler that anyone is aware of that could cause this issue?
EDIT:
I ran an app on the iPad I was testing on to verify that the memory usage was continuing to grow, and it was growing as the profiler showed. So I'm now fairly confident that this is due to either a bug, or an intentional change in iOS itself.
EDIT 2:
Here is an example of a text field that is sitting in memory when it shouldn't be. I'm not seeing any direct links back to anything of mine that should be holding it in memory.
I can run this same thing on 11.1, and the view is correctly cleanup up.