From d8a2a9e108c52e79b850be17bff08e1519c118ea Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Thu, 14 Feb 2019 16:34:14 +0100 Subject: [PATCH] fix(ios): message sent to deallocated instance (#1482) * fix(ios): message sent to deallocated instance * chore: update changelog --- CHANGELOG.md | 1 + ios/Video/RCTVideo.m | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38cf892b..c9f0e84a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index c151b3d0..389e7b52 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -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