project_files/HedgewarsMobile/Classes/SingleTeamViewController.m
branchios-revival
changeset 11273 68a0df07382b
parent 11254 407045ffe343
child 12872 00215a7ec5f5
--- a/project_files/HedgewarsMobile/Classes/SingleTeamViewController.m	Tue Nov 03 01:22:35 2015 +0100
+++ b/project_files/HedgewarsMobile/Classes/SingleTeamViewController.m	Tue Nov 03 01:27:15 2015 +0100
@@ -401,7 +401,6 @@
 }
 
 -(void) viewDidUnload {
-    [[NSNotificationCenter defaultCenter] removeObserver:self];
     self.teamDictionary = nil;
     self.teamName = nil;
     self.normalHogSprite = nil;
@@ -411,7 +410,9 @@
     [super viewDidUnload];
 }
 
--(void) dealloc {
+-(void) dealloc
+{
+    [[NSNotificationCenter defaultCenter] removeObserver:self];
     releaseAndNil(teamDictionary);
     releaseAndNil(teamName);
     releaseAndNil(normalHogSprite);