Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dispatch-cancel/SpacemanBlocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ static SMDelayedBlockHandle perform_block_after_delay(CGFloat seconds, dispatch_
// Doing this here means that if the block is canceled, we aren't holding onto retained objects for any longer than necessary.
#if !__has_feature(objc_arc)
[blockToExecute release];
[delayHandleCopy release];
#endif

blockToExecute = nil;

#if !__has_feature(objc_arc)
[delayHandleCopy release];
#endif
delayHandleCopy = nil;
};

Expand Down