Skip to content

Commit

Permalink
fix(ios): message sent to deallocated instance (TheWidlarzGroup#1482)
Browse files Browse the repository at this point in the history
* fix(ios): message sent to deallocated instance

* chore: update changelog
  • Loading branch information
n1ru4l authored Feb 14, 2019
1 parent 4424774 commit d8a2a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions ios/Video/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ - (void)dealloc
[self removePlayerLayer];
[self removePlayerItemObservers];
[_player removeObserver:self forKeyPath:playbackRate context:nil];
[_player removeObserver:self forKeyPath:externalPlaybackActive context: nil];
}

#pragma mark - App lifecycle handlers
Expand Down

0 comments on commit d8a2a9e

Please sign in to comment.