I set up a singleton following the instructions at this tutorial, but when I analyze it I see the following memory leaks:

How do I rectify this memory leakage in my singleton class?
I think that whoever that wrote that tutorial didn't write this right:
[[self alloc] init];
Instead, it sould be:
_sharedMySingleton = [[MySingleton alloc]init];
I hope it helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With