project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 3783 8e9daf967406
parent 3753 bb5a0252fb56
child 3825 fd6c20cd90e3
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sat Aug 28 05:35:02 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Sun Aug 29 16:55:27 2010 +0200
@@ -157,6 +157,7 @@
     UIAlertView *alert;
     NSString *xib;
 
+    playSound(@"clickSound");
     switch (button.tag) {
         case 0:
             if (nil == self.gameConfigViewController) {
@@ -227,6 +228,7 @@
 }
 
 -(void) viewDidUnload {
+    [[NSNotificationCenter defaultCenter] removeObserver:self];
     self.versionLabel = nil;
     self.gameConfigViewController = nil;
     self.settingsViewController = nil;