0

i need some guide lines for this. i want to relase an instance immediatly in ARC mode Is this the correct way to do it

if(secondScreenAudio.isPlaying == true){
    [secondScreenAudio stop];
    @autoreleasepool {
       secondScreenAudio = nil; 
    }
}

plz provide some tips thanks

Mr.G
  • 1,275
  • 1
  • 18
  • 48

1 Answers1

1

thats correct... you dont have to put @autorelease tho.. and you dont use autorelease that way either... if u set it to nil.. and no other hard references are pointing to the object.. it will be released.

chuthan20
  • 5,389
  • 1
  • 17
  • 21