diff --git a/lib/torrent.js b/lib/torrent.js index 104a822d..1227c00c 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -363,6 +363,9 @@ Torrent.prototype.destroy = function (cb) { self._rechokeIntervalId = null } + self.files.forEach(function (file) { + if (file._blobURL) window.URL.revokeObjectURL(file._blobURL) + }) if (self._torrentFileURL) window.URL.revokeObjectURL(self._torrentFileURL) var tasks = []