Bug 670463 - PlacesAggregatedTransaction arrays prevent chrome windows from being destroyed. r=mak

This commit is contained in:
Asaf Romano 2011-07-27 09:43:37 +02:00
Родитель 4829f0623b
Коммит 1b9f5ddc8b
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -2263,7 +2263,9 @@ BaseTransaction.prototype = {
function PlacesAggregatedTransaction(aName, aTransactions)
{
this._transactions = aTransactions;
// Copy the transactions array to decouple it from its prototype, which
// otherwise keeps alive its associated global object.
this._transactions = Array.slice(aTransactions);
this._name = aName;
this.container = -1;