project_files/HedgewarsMobile/Classes/IniParser.m
branchios-develop
changeset 12877 00215a7ec5f5
parent 11573 e9ee87b28e17
--- a/project_files/HedgewarsMobile/Classes/IniParser.m	Fri Dec 29 22:37:31 2017 +0100
+++ b/project_files/HedgewarsMobile/Classes/IniParser.m	Sat Dec 30 01:22:11 2017 +0100
@@ -22,10 +22,10 @@
 #define  SECTION_START_CHAR '['
 
 @interface IniParser ()
-@property (nonatomic, retain) NSString *iniFilePath;
+@property (nonatomic, strong) NSString *iniFilePath;
 
-@property (nonatomic, retain) NSMutableArray *mutableSections;
-@property (nonatomic, retain) NSMutableDictionary *currentSection;
+@property (nonatomic, strong) NSMutableArray *mutableSections;
+@property (nonatomic, strong) NSMutableDictionary *currentSection;
 @end
 
 @implementation IniParser
@@ -85,7 +85,6 @@
 - (void)addPreviousSectionToSectionsIfNecessary {
     if (self.currentSection != nil) {
         [self.mutableSections addObject:self.currentSection];
-        [self.currentSection release];
     }
 }
 
@@ -110,13 +109,4 @@
     return [self.mutableSections copy];
 }
 
-#pragma mark - Dealloc
-
-- (void)dealloc {
-    [_iniFilePath release];
-    [_mutableSections release];
-    [_currentSection release];
-    [super dealloc];
-}
-
 @end