diff options
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r-- | Source/SPTableData.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m index 582ad9d2..0c0814d6 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -166,7 +166,7 @@ } } - return (NSArray *)triggers; + return triggers; } /** @@ -1060,8 +1060,8 @@ return NO; } - [triggers removeAllObjects]; - [triggers addObjectsFromArray:[theResult getAllRows]]; + if (triggers) [triggers release]; + triggers = [[NSArray alloc] initWithArray:[theResult getAllRows]]; if (changeEncoding) [mySQLConnection restoreStoredEncoding]; |