Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed leaks

  • Loading branch information...
commit 4b5939f8aa1cd2adc8d5ca4e54f2e940f92f4170 1 parent da9cea8
Brandon Walkin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 BWSplitViewInspector.m
View
4 BWSplitViewInspector.m
@@ -193,7 +193,7 @@ - (void)setMinUnitPopupSelection:(int)index
NSNumber *minUnit = [NSNumber numberWithInt:index];
- NSMutableDictionary *tempMinUnits = [[splitView minUnits] mutableCopy];
+ NSMutableDictionary *tempMinUnits = [[[splitView minUnits] mutableCopy] autorelease];
[tempMinUnits setObject:minUnit forKey:[NSNumber numberWithInt:[self subviewPopupSelection]]];
[splitView setMinUnits:tempMinUnits];
}
@@ -204,7 +204,7 @@ - (void)setMaxUnitPopupSelection:(int)index
NSNumber *maxUnit = [NSNumber numberWithInt:index];
- NSMutableDictionary *tempMaxUnits = [[splitView maxUnits] mutableCopy];
+ NSMutableDictionary *tempMaxUnits = [[[splitView maxUnits] mutableCopy] autorelease];
[tempMaxUnits setObject:maxUnit forKey:[NSNumber numberWithInt:[self subviewPopupSelection]]];
[splitView setMaxUnits:tempMaxUnits];
}
Please sign in to comment.
Something went wrong with that request. Please try again.