From 4d5e4e24aa5b0b381a4472d9183ad317633ad4f3 Mon Sep 17 00:00:00 2001 From: Marius Ursache Date: Sun, 10 Nov 2013 01:04:36 +1100 Subject: Fixed memory leak --- Frameworks/QueryKit/Source/QKQuery.m | 6 +++--- 1 file 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]; -- cgit v1.2.3