diff options
author | stuconnolly <stuart02@gmail.com> | 2012-05-02 19:36:58 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-05-02 19:36:58 +0000 |
commit | 74843eab993bd3aac144f2d6ce5e69f76b002bd2 (patch) | |
tree | 979491b96551c262321a530d9d16ab3400a7dfb9 /Source/SPIndexesController.m | |
parent | f04710798a01782fddd4f7e848d8a534dedb2e7e (diff) | |
download | sequelpro-74843eab993bd3aac144f2d6ce5e69f76b002bd2.tar.gz sequelpro-74843eab993bd3aac144f2d6ce5e69f76b002bd2.tar.bz2 sequelpro-74843eab993bd3aac144f2d6ce5e69f76b002bd2.zip |
Fix memory leaks.
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 - |