From 1db166f2c6d88286327dc165ee30204d01d44d6b Mon Sep 17 00:00:00 2001 From: "peterv%propagandism.org" Date: Wed, 25 Apr 2007 18:33:55 +0000 Subject: [PATCH] Fix for bug 376854 (CycleCollector depends on uninitialized values (ageSelectionCallback and nsPurpleBuffer::BumpGeneration)). r/sr=dbaron. --- xpcom/base/nsCycleCollector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index 579d50e529c..b720df8b17d 100644 --- a/xpcom/base/nsCycleCollector.cpp +++ b/xpcom/base/nsCycleCollector.cpp @@ -438,6 +438,7 @@ struct nsPurpleBuffer nsCycleCollectorStats &stats) : mParams(params), mStats(stats), + mCurrGen(0), mTransferBuffer(nsnull) { Init(); @@ -445,6 +446,7 @@ struct nsPurpleBuffer #else nsPurpleBuffer(nsCycleCollectorParams ¶ms) : mParams(params), + mCurrGen(0), mTransferBuffer(nsnull) { Init();