Skip to content

Commit

Permalink
Merge pull request #892 from Coeur/finalize
Browse files Browse the repository at this point in the history
finalize isn't supported in ARC
  • Loading branch information
Karthikeyan authored Apr 27, 2018
2 parents 3f48ea2 + 1fe99a0 commit 37a6f2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AWSCore/FMDB/AWSFMDatabase.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ - (instancetype)initWithPath:(NSString*)aPath {
return self;
}

#if ! __has_feature(objc_arc)
- (void)finalize {
[self close];
[super finalize];
}
#endif

- (void)dealloc {
[self close];
Expand Down Expand Up @@ -1403,10 +1405,12 @@ @implementation AWSFMStatement
@synthesize useCount=_useCount;
@synthesize inUse=_inUse;

#if ! __has_feature(objc_arc)
- (void)finalize {
[self close];
[super finalize];
}
#endif

- (void)dealloc {
[self close];
Expand Down
2 changes: 2 additions & 0 deletions AWSCore/FMDB/AWSFMResultSet.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ + (instancetype)resultSetWithStatement:(AWSFMStatement *)statement usingParentDa
return AWSFMDBReturnAutoreleased(rs);
}

#if ! __has_feature(objc_arc)
- (void)finalize {
[self close];
[super finalize];
}
#endif

- (void)dealloc {
[self close];
Expand Down

0 comments on commit 37a6f2e

Please sign in to comment.