diff --git a/app/src/main/java/com/github/libretube/PlayerFragment.kt b/app/src/main/java/com/github/libretube/PlayerFragment.kt index 5b49cb11a..3ddfe4fff 100644 --- a/app/src/main/java/com/github/libretube/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/PlayerFragment.kt @@ -261,6 +261,7 @@ class PlayerFragment : Fragment() { } override fun onStop() { + exoPlayer.release() super.onStop() } @@ -268,6 +269,7 @@ class PlayerFragment : Fragment() { super.onDestroy() try { exoPlayer.stop() + exoPlayer.release() } catch (e: Exception) { } }