From 9589c5cf508d8f62b753a8d1bd45bf619a5518f0 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Fri, 23 Nov 2018 15:22:19 +0100 Subject: [PATCH] [fix/memoryleaks] Fix memory leaks / retain cycles (#162) * - Fix memory leaks - Updated SDK * - Fix retain cycles in Settings view controllers * - Refinements * - Fix variable naming * - Update SDK * - Update PocketSVG reference --- .../CardTransitionDelegate.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ownCloud/UI Elements/Card Presentation Controller/CardTransitionDelegate.swift b/ownCloud/UI Elements/Card Presentation Controller/CardTransitionDelegate.swift index 98dbd2c5f..5774eed83 100644 --- a/ownCloud/UI Elements/Card Presentation Controller/CardTransitionDelegate.swift +++ b/ownCloud/UI Elements/Card Presentation Controller/CardTransitionDelegate.swift @@ -19,12 +19,10 @@ import UIKit final class CardTransitionDelegate: NSObject, UIViewControllerTransitioningDelegate { - private weak var vcToPresent: UIViewController? - private weak var alreadyPresentedVC: UIViewController? + private weak var viewControllerToPresent: UIViewController? init(viewControllerToPresent: UIViewController, presentingViewController: UIViewController) { - self.vcToPresent = viewControllerToPresent - self.alreadyPresentedVC = presentingViewController + self.viewControllerToPresent = viewControllerToPresent } func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {