diff --git a/android/src/main/java/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView.java b/android/src/main/java/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView.java index df0c1591..63ebf811 100755 --- a/android/src/main/java/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView.java +++ b/android/src/main/java/com/yuanzhou/vlc/vlcplayer/ReactVlcPlayerView.java @@ -399,6 +399,7 @@ private void createPlayer(boolean autoplayResume, boolean isResume) { } mVideoInfo = null; mMediaPlayer.setMedia(m); + m.release(); mMediaPlayer.setScale(0); if (_subtitleUri != null) { mMediaPlayer.addSlave(Media.Slave.Type.Subtitle, _subtitleUri, true);