[Android] Fix service connection leak

Geoffrey Métais git at videolan.org
Tue Sep 18 18:22:14 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Sep 18 18:20:01 2018 +0200| [5dfa9e69c3ffc5148489aedf1574d96925f2f86e] | committer: Geoffrey Métais

Fix service connection leak

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

 vlc-android/src/org/videolan/vlc/media/MediaUtils.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt b/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
index 7b8fb2ea7..289c6a0c1 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
+++ b/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
@@ -232,6 +232,7 @@ object MediaUtils {
         override fun onConnected(service: PlaybackService) {
             synchronized(this) {
                 runnable.run(service)
+                client.disconnect()
             }
             handler.removeCallbacksAndMessages(null)
             if (this::dialog.isInitialized) dialog.cancel()



More information about the Android mailing list