- These properties are not necessary to clean when receiving memory warning ios-revival
authorantonc27 <antonc27@mail.ru>
Sat, 12 Sep 2015 05:23:28 +0200
branchios-revival
changeset 11163 f65f462d5a06
parent 11162 715849bf6458
child 11165 7f6456607da7
- These properties are not necessary to clean when receiving memory warning
project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sat Sep 12 05:21:21 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sat Sep 12 05:23:28 2015 +0200
@@ -396,16 +396,6 @@
 #pragma mark -
 #pragma mark Memory management
 -(void) didReceiveMemoryWarning {
-    if ([HWUtils isGameLaunched]) {
-        self.lastIndexPath_sc = nil;
-        self.lastIndexPath_we = nil;
-        self.lastIndexPath_lu = nil;
-        self.selectedScheme = nil;
-        self.selectedWeapon = nil;
-        self.selectedScript = nil;
-        self.scriptCommand = nil;
-        self.topControl = nil;
-    }
     self.listOfSchemes = nil;
     self.listOfWeapons = nil;
     self.listOfScripts = nil;