[Android] Fix memory leak on the mini visualizer animation

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


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Oct 10 10:50:14 2023 +0200| [1588c9583bcb8bcf085a3d49d4acfd7c4c6b16fb] | committer: Duncan McNamara

Fix memory leak on the mini visualizer animation

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/PlaylistAdapter.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/PlaylistAdapter.kt
index 46d59e5d92..1f3d2bbe14 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/PlaylistAdapter.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/PlaylistAdapter.kt
@@ -152,6 +152,7 @@ class PlaylistAdapter(private val player: IPlayer) : DiffUtilAdapter<MediaWrappe
     override fun onDetachedFromRecyclerView(recyclerView: RecyclerView) {
         super.onDetachedFromRecyclerView(recyclerView)
         marqueeScheduler?.cancelAction("")
+        currentPlayingVisu?.stop()
         currentPlayingVisu = null
     }
 



More information about the Android mailing list