I am using XCode 4.0.2 for a iOS4 project.
I have this class method that construct an object. This is a constant that i need occasionally from start to end of the app.

However, running the Analyze tool this gives me a “Potential leak of an object” warning for the c object.
Should I be concerned? How can I fix it?
Thank you
Every time you use that method, it creates a new instance of
XYZthrough the (deprecated)+newmethod.If you want a single object of class
XYZthat persists to the end of the app, you’ll need to make some changes. The simplest way is to create this object on class initialization. In the .m file for whatever class we’re looking at here, add the following:And then, your
Amethod: