From 5221c60aaeb97bf276cce069d2bdafce53446175 Mon Sep 17 00:00:00 2001 From: Kirill Budevich Date: Fri, 1 Mar 2019 20:57:51 +0300 Subject: [PATCH] Make delegate weak instead strong reference at CropViewController. --- Swift/CropViewController/CropViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Swift/CropViewController/CropViewController.swift b/Swift/CropViewController/CropViewController.swift index 6a57b4dc..c3799764 100644 --- a/Swift/CropViewController/CropViewController.swift +++ b/Swift/CropViewController/CropViewController.swift @@ -95,7 +95,7 @@ open class CropViewController: UIViewController, TOCropViewControllerDelegate { The view controller's delegate that will receive the resulting cropped image, as well as crop information. */ - public var delegate: CropViewControllerDelegate? { + public weak var delegate: CropViewControllerDelegate? { didSet { self.setUpDelegateHandlers() } }