I have a singleton object that is a module of my application and all objects created within this module has no relationship to any other module.My application creates this singleton object and this object creates further its child object that do not have any kind of relationship to other object in my application except this module.So after this module task is over i am setting this module object to nil.But two objects are not deallocating and showing in instruments of xcode.The singelton object is properly deallocating but its two child objects are remaining in memory.
My project is fully ARC. So what is the reason compiler is not deallocating singleton child object after it’s parent(singelton object) set to nil.
Thanks in advance
I fear that there is a retain cycle.
So for example child1 points to child2 and viceversa.To break that cycle you should use a weak reference.
I can’t see the code so this is just an idea.