diff options
Diffstat (limited to 'Source/SPIndexesController.m')
-rw-r--r-- | Source/SPIndexesController.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPIndexesController.m b/Source/SPIndexesController.m index 9db491ae..840ef33f 100644 --- a/Source/SPIndexesController.m +++ b/Source/SPIndexesController.m @@ -520,7 +520,11 @@ static const NSString *SPNewIndexKeyBlockSize = @"IndexKeyBlockSize"; [availableFields removeObjectsInArray:indexedFields]; - return [[availableFields objectAtIndex:index] objectForKey:@"name"]; + NSString *name = [[availableFields objectAtIndex:index] objectForKey:@"name"]; + + [availableFields release]; + + return name; } #pragma mark - |