Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Oct 17, 2013
1 parent 1858d52 commit 538b1c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ var storageBufferer = {
chrome.storage.local.set(this.store, function() {
console.debug('HTTP Switchboard > saved buffered local storage');
});
// rhill 20131017: Once all is persisted, no need to hold onto
// whatever is in the store, this reduce memory footprint of
// exension.
this.store = {};
}
}
};
Expand Down

0 comments on commit 538b1c0

Please sign in to comment.