Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed #322 blobURL cleanup #373

Merged
merged 2 commits into from Jul 15, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

fixed #322 blobURL cleanup

Couldn't find tests to go along with the changes
  • Loading branch information
OlaviSau committed Jul 15, 2015
commit 0bb147275d6f188c45803bb49b71858f0f4cc8e6
@@ -362,7 +362,10 @@ Torrent.prototype.destroy = function (cb) {
clearInterval(self._rechokeIntervalId)
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 = []
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.