fix(ios): message sent to deallocated instance (#1482)

* fix(ios): message sent to deallocated instance

* chore: update changelog
This commit is contained in:
Laurin Quast
2019-02-14 16:34:14 +01:00
committed by GitHub
parent 4424774ca3
commit d8a2a9e108
2 changed files with 2 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
### next
* Fix loading package resolved videos when using video-caching [#1438](https://github.com/react-native-community/react-native-video/pull/1438)
* Fix "message sent to deallocated instance" crash on ios [#1482](https://github.com/react-native-community/react-native-video/pull/1482)
### Version 4.3.0
* Fix iOS video not displaying after switching source [#1395](https://github.com/react-native-community/react-native-video/pull/1395)

View File

@@ -197,6 +197,7 @@ static int const RCTVideoUnset = -1;
[self removePlayerLayer];
[self removePlayerItemObservers];
[_player removeObserver:self forKeyPath:playbackRate context:nil];
[_player removeObserver:self forKeyPath:externalPlaybackActive context: nil];
}
#pragma mark - App lifecycle handlers