Skip to content

Commit

Permalink
Manually committed pull request BradLarson#1453 by cesare-montresor.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLarson committed Mar 18, 2014
1 parent 8d39590 commit 1666b40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions framework/Source/GPUImageMovie.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ - (void)yuvConversionSetup;

- (void)dealloc
{
runSynchronouslyOnVideoProcessingQueue(^{
[displayLink removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
if (self.playerItem && (displayLink != nil))
{
[displayLink invalidate]; // remove from all run loops
displayLink = nil;
});
}
}

#pragma mark -
Expand Down

0 comments on commit 1666b40

Please sign in to comment.