Commits

Anonymous committed c6c514f

Fixed leaks

  • Participants
  • Parent commits 1209f49

Comments (0)

Files changed (1)

File BWSplitViewInspector.m

 	
 	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];
 }
 
 	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];
 }