Fix crash in nsStyleQuotes copy constructor. Bug 174178, r=caillon,

sr=dbaron, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@131920 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2002-10-13 18:55:12 +00:00
parent d1f2d0bed4
commit 505d37753e
2 changed files with 4 additions and 0 deletions

View File

@@ -1242,6 +1242,8 @@ nsStyleQuotes::~nsStyleQuotes(void)
}
nsStyleQuotes::nsStyleQuotes(const nsStyleQuotes& aSource)
: mQuotesCount(0),
mQuotes(nsnull)
{
if (NS_SUCCEEDED(AllocateQuotes(aSource.QuotesCount()))) {
PRUint32 count = (mQuotesCount * 2);

View File

@@ -1242,6 +1242,8 @@ nsStyleQuotes::~nsStyleQuotes(void)
}
nsStyleQuotes::nsStyleQuotes(const nsStyleQuotes& aSource)
: mQuotesCount(0),
mQuotes(nsnull)
{
if (NS_SUCCEEDED(AllocateQuotes(aSource.QuotesCount()))) {
PRUint32 count = (mQuotesCount * 2);