diff --git a/packages/audioplayers_web/lib/wrapped_player.dart b/packages/audioplayers_web/lib/wrapped_player.dart index 7ed642f60..dc91edfc1 100644 --- a/packages/audioplayers_web/lib/wrapped_player.dart +++ b/packages/audioplayers_web/lib/wrapped_player.dart @@ -161,6 +161,9 @@ class WrappedPlayer { } void release() { + // Release `AudioElement` correctly (#966) + player?.src = ''; + player?.remove(); _cancel(); player = null; _stereoPanner = null;