Skip to content

Commit

Permalink
Merge pull request #9 from Tightdb/objc-query-leak-fix
Browse files Browse the repository at this point in the history
Approved by Kristian.
  • Loading branch information
jjepsen committed Oct 9, 2013
2 parents 445d9e3 + 71acfe9 commit 3f48eec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/tightdb/objc/query_objc.mm
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ -(TightdbQuery *)column:(size_t)colNdx isLessThanOrEqualToDate:(time_t)value

@implementation TightdbQueryAccessorBool
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand All @@ -682,7 +682,7 @@ -(TightdbQuery *)columnIsEqualTo:(BOOL)value

@implementation TightdbQueryAccessorInt
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand Down Expand Up @@ -789,7 +789,7 @@ -(NSNumber *)averageWithError:(NSError *__autoreleasing *)error

@implementation TightdbQueryAccessorFloat
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand Down Expand Up @@ -882,7 +882,7 @@ -(NSNumber *)averageWithError:(NSError *__autoreleasing *)error

@implementation TightdbQueryAccessorDouble
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand Down Expand Up @@ -975,7 +975,7 @@ -(NSNumber *)averageWithError:(NSError *__autoreleasing *)error

@implementation TightdbQueryAccessorString
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand Down Expand Up @@ -1042,7 +1042,7 @@ -(TightdbQuery *)columnContains:(NSString *)value caseSensitive:(BOOL)caseSensit

@implementation TightdbQueryAccessorBinary
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand Down Expand Up @@ -1084,7 +1084,7 @@ -(TightdbQuery *)columnContains:(TightdbBinary *)value

@implementation TightdbQueryAccessorDate
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand Down Expand Up @@ -1136,7 +1136,7 @@ -(TightdbQuery *)columnIsBetween:(time_t)from and_:(time_t)to

@implementation TightdbQueryAccessorSubtable
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand All @@ -1153,7 +1153,7 @@ -(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query

@implementation TightdbQueryAccessorMixed
{
TightdbQuery *_query;
__weak TightdbQuery *_query;
size_t _column_ndx;
}
-(id)initWithColumn:(size_t)columnId query:(TightdbQuery *)query
Expand Down

0 comments on commit 3f48eec

Please sign in to comment.