aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataStorage.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDataStorage.m')
-rw-r--r--Source/SPDataStorage.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPDataStorage.m b/Source/SPDataStorage.m
index 30be0644..3db04159 100644
--- a/Source/SPDataStorage.m
+++ b/Source/SPDataStorage.m
@@ -58,7 +58,7 @@ static inline NSMutableArray* SPDataStorageGetEditedRow(NSPointerArray* rowStore
{
NSUInteger i;
editedRowCount = 0;
- [editedRows release], editedRows = nil;
+ SPClear(editedRows);
if (unloadedColumns) free(unloadedColumns), unloadedColumns = NULL;
if (dataStorage) {
@@ -68,7 +68,7 @@ static inline NSMutableArray* SPDataStorageGetEditedRow(NSPointerArray* rowStore
[newDataStorage replaceExistingResultStore:dataStorage];
}
- [dataStorage release], dataStorage = nil;
+ SPClear(dataStorage);
}
dataStorage = [newDataStorage retain];
@@ -449,8 +449,8 @@ static inline NSMutableArray* SPDataStorageGetEditedRow(NSPointerArray* rowStore
}
- (void) dealloc {
- [dataStorage release], dataStorage = nil;
- [editedRows release], editedRows = nil;
+ SPClear(dataStorage);
+ SPClear(editedRows);
if (unloadedColumns) free(unloadedColumns), unloadedColumns = NULL;
[super dealloc];