diff options
author | Marius Ursache <bamse16@yahoo.com> | 2013-11-10 01:04:36 +1100 |
---|---|---|
committer | Marius Ursache <bamse16@yahoo.com> | 2013-11-10 01:04:36 +1100 |
commit | 4d5e4e24aa5b0b381a4472d9183ad317633ad4f3 (patch) | |
tree | 083eb992fcf5b150c908f3a5fec652faeaa4c165 /Frameworks/QueryKit | |
parent | 310daa959c79054371eecf3e92523a6e4cd1e09f (diff) | |
download | sequelpro-4d5e4e24aa5b0b381a4472d9183ad317633ad4f3.tar.gz sequelpro-4d5e4e24aa5b0b381a4472d9183ad317633ad4f3.tar.bz2 sequelpro-4d5e4e24aa5b0b381a4472d9183ad317633ad4f3.zip |
Fixed memory leak
Diffstat (limited to 'Frameworks/QueryKit')
-rw-r--r-- | Frameworks/QueryKit/Source/QKQuery.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Frameworks/QueryKit/Source/QKQuery.m b/Frameworks/QueryKit/Source/QKQuery.m index 359ca558..59923c0a 100644 --- a/Frameworks/QueryKit/Source/QKQuery.m +++ b/Frameworks/QueryKit/Source/QKQuery.m @@ -113,9 +113,9 @@ static NSString *QKNoQueryTableException = @"QKNoQueryTable"; if ((self = [super init])) { [self setTable:table]; [self setDatabase:database]; - [self setFields:[[NSMutableArray alloc] init]]; - [self setUpdateParameters:[[NSMutableArray alloc] init]]; - [self setParameters:[[NSMutableArray alloc] init]]; + [self setFields:[NSMutableArray array]]; + [self setUpdateParameters:[NSMutableArray array]]; + [self setParameters:[NSMutableArray array]]; [self setQueryType:QKUnknownQuery]; [self setUseQuotedIdentifiers:YES]; |