equal
deleted
inserted
replaced
145 if (voiceBeingPlayed != NULL) { |
145 if (voiceBeingPlayed != NULL) { |
146 Mix_HaltChannel(lastChannel); |
146 Mix_HaltChannel(lastChannel); |
147 Mix_FreeChunk(voiceBeingPlayed); |
147 Mix_FreeChunk(voiceBeingPlayed); |
148 voiceBeingPlayed = NULL; |
148 voiceBeingPlayed = NULL; |
149 } |
149 } |
|
150 self.lastIndexPath = nil; |
150 MSG_MEMCLEAN(); |
151 MSG_MEMCLEAN(); |
151 [super didReceiveMemoryWarning]; |
152 [super didReceiveMemoryWarning]; |
152 } |
153 } |
153 |
154 |
154 -(void) viewDidUnload { |
155 -(void) viewDidUnload { |
155 voiceBeingPlayed = NULL; |
156 if (voiceBeingPlayed != NULL) { |
|
157 Mix_HaltChannel(lastChannel); |
|
158 Mix_FreeChunk(voiceBeingPlayed); |
|
159 voiceBeingPlayed = NULL; |
|
160 } |
156 self.lastIndexPath = nil; |
161 self.lastIndexPath = nil; |
157 self.teamDictionary = nil; |
162 self.teamDictionary = nil; |
158 self.voiceArray = nil; |
163 self.voiceArray = nil; |
159 MSG_DIDUNLOAD(); |
164 MSG_DIDUNLOAD(); |
160 [super viewDidUnload]; |
165 [super viewDidUnload]; |