"Potential" Leak of an Object Allocated...
"Potential" Leak of an Object Allocated...
- Subject: "Potential" Leak of an Object Allocated...
- From: Philip McIntosh <email@hidden>
- Date: Sun, 16 Sep 2012 16:45:26 -0600
I just installed XCode 4.3.1 and have done a couple of things to make an iPad app compatible with the new iPad retina display. No major changes to any of the code.
Just for the heck of it I ran Analyze and it came back with a bunch of instances of potential memory leaks for some sound files, specifically at lines like:
AudioServicesCreateSystemSoundID (alertSoundFileURLRef_,&alertSoundFileObject_);
It never had this problem before. These references are set when the app launches and checks to see which sound files to use for alerts depending on what preferences are set in the Settings app.
I have not loaded it on a device yet to run it in instruments, but is there a chance this is not a memory leak at all?
Since I don' think playing the sounds with AudioServicesPlaySystemSound (alertSoundFileObject_); increases the reference count I don't really see a problem with having the reference count set at 1 after the setAlertSounds method is run. True? |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden