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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user