diff options
author | bamse16 <marius@marius.me.uk> | 2009-07-06 08:16:25 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-07-06 08:16:25 +0000 |
commit | 32294354ab3cc05c11178580550db4561dd2754f (patch) | |
tree | 78f59c476e7bf59bf3f248f0758960daa3218763 | |
parent | 132d2c10c30cccfa3d2a94a475ddf29aa35061ff (diff) | |
download | sequelpro-32294354ab3cc05c11178580550db4561dd2754f.tar.gz sequelpro-32294354ab3cc05c11178580550db4561dd2754f.tar.bz2 sequelpro-32294354ab3cc05c11178580550db4561dd2754f.zip |
Fixed some BW leak
-rw-r--r-- | Frameworks/BWToolkitFramework.framework/BWSplitView.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/BWToolkitFramework.framework/BWSplitView.m b/Frameworks/BWToolkitFramework.framework/BWSplitView.m index 1252cce8..82291a51 100644 --- a/Frameworks/BWToolkitFramework.framework/BWSplitView.m +++ b/Frameworks/BWToolkitFramework.framework/BWSplitView.m @@ -1042,7 +1042,7 @@ static float scaleFactor = 1.0f; // TODO: Could add a special case for resizableSubviewsTotalAvailableSize <= 0 : just set all resizable subviews to minimum size // Make array of all the resizable subviews indexes - NSMutableArray *resizableSubviewIndexes = [[resizableSubviewPreferredProportion allKeys] mutableCopy]; + NSMutableArray *resizableSubviewIndexes = [[[resizableSubviewPreferredProportion allKeys] mutableCopy] autorelease]; [resizableSubviewIndexes sortUsingDescriptors:[NSArray arrayWithObject:[[[NSSortDescriptor alloc] initWithKey:@"self" ascending:YES] autorelease]]]; // Loop until none of the resizable subviews' constraints are violated @@ -1148,7 +1148,7 @@ static float scaleFactor = 1.0f; if (RESIZE_DEBUG_LOGS) NSLog(@"newSubviewSizes after nonresizable proportional resizing: %@", newSubviewSizes); // Make array of all the non-resizable subviews indexes - NSMutableArray *nonresizableSubviewIndexes = [[nonresizableSubviewPreferredSize allKeys] mutableCopy]; + NSMutableArray *nonresizableSubviewIndexes = [[[nonresizableSubviewPreferredSize allKeys] mutableCopy] autorelease]; [nonresizableSubviewIndexes sortUsingDescriptors:[NSArray arrayWithObject:[[[NSSortDescriptor alloc] initWithKey:@"self" ascending:YES] autorelease]]]; // Loop until none of the non-resizable subviews' constraints are violated |