зеркало из https://github.com/mozilla/pjs.git
fix scrollbar crash
This commit is contained in:
Родитель
b96f8240ac
Коммит
a20a31c3c2
|
@ -1203,8 +1203,10 @@ nsGenericElement::AddRef()
|
|||
NS_IMETHODIMP_(nsrefcnt)
|
||||
nsGenericElement::Release()
|
||||
{
|
||||
nsrefcnt rc;
|
||||
NS_RELEASE2(mContent, rc);
|
||||
nsrefcnt rc=0;
|
||||
NS_ASSERTION(mContent, "nsGenericElement: Nothing to release!");
|
||||
if (mContent)
|
||||
NS_RELEASE2(mContent, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
@ -1203,8 +1203,10 @@ nsGenericElement::AddRef()
|
|||
NS_IMETHODIMP_(nsrefcnt)
|
||||
nsGenericElement::Release()
|
||||
{
|
||||
nsrefcnt rc;
|
||||
NS_RELEASE2(mContent, rc);
|
||||
nsrefcnt rc=0;
|
||||
NS_ASSERTION(mContent, "nsGenericElement: Nothing to release!");
|
||||
if (mContent)
|
||||
NS_RELEASE2(mContent, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче