summary refs log tree commit diff stats
path: root/Classes/GameOverScene.m
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-09-05 13:03:27 -0400
committerStarla Insigna <starla4444@gmail.com>2011-09-05 13:03:27 -0400
commitbbe409f5e34b5269ecbb7f61dbb8a793e2871d20 (patch)
treeb928d980abca3d1f1747362032061d592478556c /Classes/GameOverScene.m
parent5af6401805f65a9b5968625d565613dd83edcfc7 (diff)
downloadcartcollect-bbe409f5e34b5269ecbb7f61dbb8a793e2871d20.tar.gz
cartcollect-bbe409f5e34b5269ecbb7f61dbb8a793e2871d20.tar.bz2
cartcollect-bbe409f5e34b5269ecbb7f61dbb8a793e2871d20.zip
Made general memory fixes
This revision should also hopefully fix the undefined behavior GameOverScene bug--if it, I'll reopen the ticket and continue investigating.

Fixes #215
Diffstat (limited to 'Classes/GameOverScene.m')
-rwxr-xr-xClasses/GameOverScene.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Classes/GameOverScene.m b/Classes/GameOverScene.m index 28c59ec..cfbb446 100755 --- a/Classes/GameOverScene.m +++ b/Classes/GameOverScene.m
@@ -184,20 +184,26 @@
184 184
185 [submitSwitch removeFromSuperview]; 185 [submitSwitch removeFromSuperview];
186 [submitSwitch release]; 186 [submitSwitch release];
187 submitSwitch = nil;
187 188
188 [textField removeFromSuperview]; 189 [textField removeFromSuperview];
189 [textField release]; 190 [textField release];
191 textField = nil;
190 192
191 [scoreField removeFromSuperview]; 193 [scoreField removeFromSuperview];
192 [scoreField release]; 194 [scoreField release];
195 scoreField = nil;
193 196
194 [activityIndicator removeFromSuperview]; 197 [activityIndicator removeFromSuperview];
195 [activityIndicator release]; 198 [activityIndicator release];
199 activityIndicator = nil;
196 200
197 [backButton removeFromSuperview]; 201 [backButton removeFromSuperview];
202 backButton = nil;
198 203
199 [movingLayer removeFromSuperview]; 204 [movingLayer removeFromSuperview];
200 [movingLayer release]; 205 [movingLayer release];
206 movingLayer = nil;
201 207
202 [[CCDirector sharedDirector] replaceScene:[MainMenuLayer scene]]; 208 [[CCDirector sharedDirector] replaceScene:[MainMenuLayer scene]];
203} 209}