[Android] Fix leak on the video player options delegate

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 09:05:57 2023 +0200| [9cb6aa67ee1d9203694acec5d2a374200fa66ea0] | committer: Duncan McNamara

Fix leak on the video player options delegate

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 5ba39eca6f..1a58b81ca6 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -854,6 +854,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
             dataset.removeObserver(playlistObserver)
             onCleared()
         }
+        optionsDelegate = null
 
         // Dismiss the presentation when the activity is not visible.
         displayManager.release()



More information about the Android mailing list