Skip to content

Commit bc405f8

Browse files
n1ru4lAnteWall
authored andcommitted
fix(ios): message sent to deallocated instance (TheWidlarzGroup#1482)
* fix(ios): message sent to deallocated instance * chore: update changelog
1 parent c35dee9 commit bc405f8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### next
44

55
* Fix loading package resolved videos when using video-caching [#1438](https://github.com/react-native-community/react-native-video/pull/1438)
6+
* Fix "message sent to deallocated instance" crash on ios [#1482](https://github.com/react-native-community/react-native-video/pull/1482)
67

78
### Version 4.3.0
89
* Fix iOS video not displaying after switching source [#1395](https://github.com/react-native-community/react-native-video/pull/1395)

ios/Video/RCTVideo.m

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ - (void)dealloc
202202
[self removePlayerLayer];
203203
[self removePlayerItemObservers];
204204
[_player removeObserver:self forKeyPath:playbackRate context:nil];
205+
[_player removeObserver:self forKeyPath:externalPlaybackActive context: nil];
205206
}
206207

207208
#pragma mark - App lifecycle handlers

0 commit comments

Comments
 (0)