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
parent 4e4a67f51a
commit adb338728b

View File

@ -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;