[Android] Fix leak on the player visualizer in SecondaryActivity

Nicolas Pomepuy git at videolan.org
Wed Oct 11 16:41:42 UTC 2023


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Oct 11 08:50:54 2023 +0200| [bf29dc6a13aa6950c8aa3cf035c3b8aebb78c222] | committer: Duncan McNamara

Fix leak on the player visualizer in SecondaryActivity

> https://code.videolan.org/videolan/vlc-android/commit/bf29dc6a13aa6950c8aa3cf035c3b8aebb78c222
---

 application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index 81b0eeb2b2..691b34374f 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -265,6 +265,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
 
     override fun onDestroy() {
         Settings.removeAudioControlsChangeListener()
+        binding.songsList.adapter = null
         super.onDestroy()
     }
 



More information about the Android mailing list