File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ All notable changes to this project will be documented in this file.
1616#### Fixed
1717- Fixed a retain cycle in completion handler of waveform render operation
1818 - Added by [ Philippe Jayet] ( https://github.com/pjay )
19+ - Cancel waveform render operation when view is released
20+ - Added by [ Philippe Jayet] ( https://github.com/pjay )
1921
2022---
2123
Original file line number Diff line number Diff line change @@ -304,6 +304,10 @@ open class FDWaveformView: UIView {
304304 super. init ( frame: rect)
305305 setup ( )
306306 }
307+
308+ deinit {
309+ inProgressWaveformRenderOperation? . cancel ( )
310+ }
307311
308312 /// If the cached waveform or in progress waveform is insufficient for the current frame
309313 fileprivate func cacheStatus( ) -> CacheStatus {
You can’t perform that action at this time.
0 commit comments