Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #194 from tiana890/master
Browse files Browse the repository at this point in the history
set webView's scroll delegate to nil in deinit in FolioReaderPage
  • Loading branch information
hebertialmeida authored Dec 22, 2016
2 parents 5b76502 + 3709a2b commit 325e5fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/FolioReaderPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ open class FolioReaderPage: UICollectionViewCell, UIWebViewDelegate, UIGestureRe
}

deinit {
webView.scrollView.delegate = nil
NotificationCenter.default.removeObserver(self)
}

Expand Down

0 comments on commit 325e5fc

Please sign in to comment.