Browse Source

invoke [super finalize]

Dave DeLong 15 years ago
parent
commit
99112febca
2 changed files with 3 additions and 0 deletions
  1. 2 0
      src/FMDatabase.m
  2. 1 0
      src/FMResultSet.m

+ 2 - 0
src/FMDatabase.m

@@ -23,6 +23,7 @@ - (id)initWithPath:(NSString*)aPath {
 
 - (void)finalize {
 	[self close];
+	[super finalize];
 }
 
 - (void)dealloc {
@@ -728,6 +729,7 @@ @implementation FMStatement
 
 - (void)finalize {
 	[self close];
+	[super finalize];
 }
 
 - (void)dealloc {

+ 1 - 0
src/FMResultSet.m

@@ -21,6 +21,7 @@ + (id)resultSetWithStatement:(FMStatement *)statement usingParentDatabase:(FMDat
 
 - (void)finalize {
 	[self close];
+	[super finalize];
 }
 
 - (void)dealloc {