Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit 05f146d

Browse files
author
Michael Ehrmann
committed
[FIX] leaking tab bar control cells
1 parent b322130 commit 05f146d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/PSMTabDragAssistant.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ - (void)distributePlaceholdersInTabBarControl:(PSMTabBarControl *)tabBarControl
778778
// called upon first drag - must distribute placeholders
779779
[self distributePlaceholdersInTabBarControl:tabBarControl];
780780

781-
NSArray *cells = [[tabBarControl cells] copy];
781+
NSArray *cells = [[[tabBarControl cells] copy] autorelease];
782782

783783
// replace dragged cell with a placeholder, and clean up surrounding cells
784784
NSUInteger cellIndex = [cells indexOfObject:cell];

0 commit comments

Comments
 (0)