diff --git a/index.html b/index.html
index 33348f0..5a88280 100644
--- a/index.html
+++ b/index.html
@@ -1683,14 +1683,9 @@ isolateBtn.addEventListener('click', isolateTracks);
deleteBtn.addEventListener('click', deleteTrack);
clearBtn.addEventListener('click', () => {
if (tracks.length === 0) return;
- if (currentIndex >= 0) {
- const current = tracks[currentIndex];
- tracks = [current];
- currentIndex = 0;
- } else {
- tracks = [];
- currentIndex = -1;
- }
+ for (const t of tracks) URL.revokeObjectURL(t.url);
+ tracks = [];
+ currentIndex = -1;
selectedIndices.clear();
anchorTrack = null;
renderTracks();