ios: fix blocked preview button
authorkoda
Mon, 26 Mar 2012 03:36:11 +0200
changeset 6823 e54a68b9b844
parent 6822 206db098f8c5
child 6824 617a861b7750
ios: fix blocked preview button
project_files/HedgewarsMobile/Classes/MapConfigViewController.m
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Mon Mar 26 03:24:50 2012 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Mon Mar 26 03:36:11 2012 +0200
@@ -455,7 +455,6 @@
     self.staticMapCommand = nil;
     self.missionCommand = nil;
 
-    self.previewButton = nil;
     self.tableView = nil;
     self.maxLabel = nil;
     self.segmentedControl = nil;
@@ -470,10 +469,10 @@
 
 -(void) didReceiveMemoryWarning {
     self.dataSourceArray = nil;
-    self.previewButton = nil;
     [super didReceiveMemoryWarning];
 
     if (self.view.superview == nil) {
+        self.previewButton = nil;
         self.tableView = nil;
         self.maxLabel = nil;
         self.slider = nil;