diff --git a/Library/Sources/SCImageView.m b/Library/Sources/SCImageView.m index 583780d8..11456551 100644 --- a/Library/Sources/SCImageView.m +++ b/Library/Sources/SCImageView.m @@ -49,6 +49,10 @@ - (instancetype)initWithCoder:(NSCoder *)aDecoder { return self; } +- (void)dealloc { + [EAGLContext setCurrentContext:nil]; +} + - (void)_imageViewCommonInit { _scaleAndResizeCIImageAutomatically = YES; self.preferredCIImageTransform = CGAffineTransformIdentity;