зеркало из https://github.com/mozilla/pjs.git
r=peterl; bug=15373; Fixed atom memory leaky
This commit is contained in:
Родитель
435d460fb3
Коммит
ea74d6b3c4
|
@ -1585,11 +1585,12 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
|
|||
if (0 == (dataMask & SEL_MASK_PELEM)) {
|
||||
dataMask |= SEL_MASK_PELEM;
|
||||
aSelector.AddPseudoClass(pseudo); // store it here, it gets pulled later
|
||||
NS_RELEASE(pseudo);
|
||||
|
||||
// ensure selector ends here, must be followed by EOF, space, '{' or ','
|
||||
if (GetToken(aErrorCode, PR_FALSE)) { // premature eof is ok (here!)
|
||||
if ((eCSSToken_WhiteSpace == mToken.mType) ||
|
||||
(mToken.IsSymbol('{') || mToken.IsSymbol(','))) {
|
||||
(mToken.IsSymbol('\{') || mToken.IsSymbol(','))) {
|
||||
UngetToken();
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
|
|
@ -1585,11 +1585,12 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
|
|||
if (0 == (dataMask & SEL_MASK_PELEM)) {
|
||||
dataMask |= SEL_MASK_PELEM;
|
||||
aSelector.AddPseudoClass(pseudo); // store it here, it gets pulled later
|
||||
NS_RELEASE(pseudo);
|
||||
|
||||
// ensure selector ends here, must be followed by EOF, space, '{' or ','
|
||||
if (GetToken(aErrorCode, PR_FALSE)) { // premature eof is ok (here!)
|
||||
if ((eCSSToken_WhiteSpace == mToken.mType) ||
|
||||
(mToken.IsSymbol('{') || mToken.IsSymbol(','))) {
|
||||
(mToken.IsSymbol('\{') || mToken.IsSymbol(','))) {
|
||||
UngetToken();
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
|
|
@ -1585,11 +1585,12 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
|
|||
if (0 == (dataMask & SEL_MASK_PELEM)) {
|
||||
dataMask |= SEL_MASK_PELEM;
|
||||
aSelector.AddPseudoClass(pseudo); // store it here, it gets pulled later
|
||||
NS_RELEASE(pseudo);
|
||||
|
||||
// ensure selector ends here, must be followed by EOF, space, '{' or ','
|
||||
if (GetToken(aErrorCode, PR_FALSE)) { // premature eof is ok (here!)
|
||||
if ((eCSSToken_WhiteSpace == mToken.mType) ||
|
||||
(mToken.IsSymbol('{') || mToken.IsSymbol(','))) {
|
||||
(mToken.IsSymbol('\{') || mToken.IsSymbol(','))) {
|
||||
UngetToken();
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче