Skip to content
Snippets Groups Projects
Commit 0edcb3fa authored by George Nachman's avatar George Nachman
Browse files

Change a retain-release into retain-autorelease to simplify code.

parent 886e2df7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -196,7 +196,7 @@ NSString *const iTermMovePaneDragType = @"iTermDragPanePBType";
}
 
SessionView *oldView = [movingSession view];
[oldView retain];
[[oldView retain] autorelease];
PTYTab *theTab = [movingSession.delegate.realParentWindow tabForSession:movingSession];
[theTab removeSession:movingSession];
if ([[theTab sessions] count] == 0) {
Loading
Loading
@@ -208,7 +208,6 @@ NSString *const iTermMovePaneDragType = @"iTermDragPanePBType";
addingSession:movingSession
targetSession:dest
performSetup:NO];
[oldView release];
[destinationTab fitSessionToCurrentViewSize:movingSession];
} else {
[destinationTab swapSession:dest withSession:session_];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment